Module: Workarea::Listrak::TransactionalMessage
- Extended by:
- ActiveSupport::Concern
- Defined in:
- app/services/workarea/listrak/transactional_message.rb
Overview
Base functionality for Listrak message sender classes. Listrak::TransactionalMessage
objects wrap a call to the Listrak REST API and allow the user to cleanly define attribute ID / value pairs and “name” them by defining attribute values as method calls.
Instance Method Summary collapse
-
#deliver ⇒ nil
Sends the transactional mesasge.
-
#email_address ⇒ Object
Email address to deliver this message to.
Instance Method Details
#deliver ⇒ nil
Sends the transactional mesasge
58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'app/services/workarea/listrak/transactional_message.rb', line 58 def deliver = Listrak::Models::TransactionalMessageForm.new( email_address: email_address, segmentation_field_values: segmentation_field_values ) Listrak.email..create( Listrak.configuration.default_list_id, , ) nil end |
#email_address ⇒ Object
Email address to deliver this message to
|
# File 'app/services/workarea/listrak/transactional_message.rb', line 50
|