Class: Contactology::TransactionalMessage
- Extended by:
- API
- Defined in:
- lib/contactology/transactional_message.rb
Instance Method Summary collapse
Methods included from API
Methods inherited from Stash
Instance Method Details
#replacements ⇒ Object
14 15 16 |
# File 'lib/contactology/transactional_message.rb', line 14 def replacements self['replacements'] || Hash.new end |
#send_message(options = {}) ⇒ Object
18 19 20 21 22 23 24 25 26 27 28 |
# File 'lib/contactology/transactional_message.rb', line 18 def ( = {}) self.class.query('Campaign_Send_Transactional', .merge({ 'campaignId' => campaign.id, 'contact' => normalize_contact(contact), 'source' => source, 'replacements' => {:_contactology => 'Contactology'}.merge(replacements), :on_error => false, :on_timeout => false, :on_success => true })) end |