Class: Taskr::Actions::Howlr

Inherits:
Rest
  • Object
show all
Defined in:
lib/taskr/actions.rb

Instance Attribute Summary

Attributes inherited from Base

#parameters, #task

Instance Method Summary collapse

Methods inherited from Base

#initialize, #trigger

Constructor Details

This class inherits a constructor from Taskr::Actions::Base

Instance Method Details

#executeObject



219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
# File 'lib/taskr/actions.rb', line 219

def execute
  content_type = parameters['content_type']
  content_type = 'text/plain' if content_type.blank?
  
  parameters['method'] = 'post'
  parameters['params'] = {
    'content_type' => content_type,
    'from' => parameters['from'],
    'recipients' => parameters['recipients'],
    'subject' => parameters['subject'],
    'body' => parameters['body'],
    'format' => 'XML'
  }
  
  super
end