class Speedflow::Plugin::Flowdock::Plugin
Plugin
core
Attributes
client[W]
@return [<Speedflow::Flowdock::Client>] Plugin
client.
Public Instance Methods
action_notify()
click to toggle source
Public: Notify.
Returns Hash of result.
# File lib/speedflow/plugin/flowdock/plugin.rb, line 12 def action_notify flow_id_or_token = config.by_input('flow', config.by_config('flow')) message = config.by_input('message') tags = config.by_input('tags').split(',') client.notify(flow_id_or_token, message, tags) prompt.ok '[FLOWDOCK] Flow was notified' # ACTION: action_notify # OUTPUT: { 'message' => String, 'tags' => [] } { 'message' => message, 'tags' => tags } end
client()
click to toggle source
Public: Plugin
client.
Returns <Speedflow::Flowdock::Client> instance.
# File lib/speedflow/plugin/flowdock/plugin.rb, line 30 def client @client ||= Client.new(@config, @prompt) end