Class: Taskr::Actions::Howlr

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

Instance Attribute Summary

Attributes inherited from Base

#parameters, #task, #task_action

Instance Method Summary collapse

Methods inherited from Base

#initialize, #to_s, #trigger

Constructor Details

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

Instance Method Details

#executeObject



284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
# File 'lib/taskr/actions.rb', line 284

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