Class: FlowdockBuildNotifier::TeamRoomSender
Instance Attribute Summary
#client, #config
Instance Method Summary
collapse
#initialize, #messages_path
Instance Method Details
#flow ⇒ Object
35
36
37
38
39
|
# File 'lib/flowdock_build_notifier/flowdock_message_sender.rb', line 35
def flow
@flow_id ||= client.get('/flows').detect do |flow|
flow['name'] == config.flow_name
end
end
|
#send_message(message) ⇒ Object
41
42
43
|
# File 'lib/flowdock_build_notifier/flowdock_message_sender.rb', line 41
def send_message(message)
client.chat_message(flow: flow['id'], content: message.to_s)
end
|