class Fiesta::Announcement
Public Instance Methods
post()
click to toggle source
# File lib/fiesta/announcement.rb, line 9 def post client.post text end
Private Instance Methods
client()
click to toggle source
# File lib/fiesta/announcement.rb, line 24 def client Slack.new(options) end
options()
click to toggle source
# File lib/fiesta/announcement.rb, line 16 def options config.merge(payload: payload) end
payload()
click to toggle source
# File lib/fiesta/announcement.rb, line 20 def payload config.fetch(:payload, {}).merge(text: text) end