Class: Edi::Houzz::Sender
- Inherits:
-
BaseEdiService
- Object
- BaseService
- BaseEdiService
- Edi::Houzz::Sender
- Defined in:
- app/services/edi/houzz/sender.rb
Constant Summary
Constants included from AddressAbbreviator
AddressAbbreviator::MAX_LENGTH
Instance Attribute Summary
Attributes inherited from BaseEdiService
Instance Method Summary collapse
Methods inherited from BaseEdiService
#duplicate_po_already_notified?, #initialize, #mark_duplicate_po_as_notified, #report_order_creation_issues, #safe_process_edi_communication_log
Methods included from AddressAbbreviator
#abbreviate_street, #collect_street_originals, #record_address_abbreviation_notes
Methods inherited from BaseService
#initialize, #log_debug, #log_error, #log_info, #log_warning, #logger, #options, #process, #tagged_logger
Constructor Details
This class inherits a constructor from Edi::BaseEdiService
Instance Method Details
#instantiate_transporter(transporter, transporter_profile = nil) ⇒ Object
31 32 33 34 35 36 37 38 39 40 |
# File 'app/services/edi/houzz/sender.rb', line 31 def instantiate_transporter(transporter, transporter_profile = nil) case transporter when :sftp 'Transport::SftpConnection'.constantize.new(transporter_profile) when :http_api Transport::HttpApiConnection.new({profile: transporter_profile}) else raise "Unknown transporter: #{transporter}" end end |