metamaps--metamaps/app/models/webhooks/slack/user_present_on_map.rb

26 lines
616 B
Ruby
Raw Normal View History

2016-04-26 12:08:12 +00:00
class Webhooks::Slack::UserPresentOnMap < Webhooks::Slack::Base
def text
"Mapper *#{event.user.name}* has joined the map *#{event.map.name}*. #{view_map_on_metamaps('Map with them')}"
end
# TODO: it would be sweet if it sends it with the metacode as the icon_url
2016-04-26 12:08:12 +00:00
def attachment_fallback
'' # {}"*#{eventable.name}*\n#{eventable.description}\n"
2016-04-26 12:08:12 +00:00
end
def attachment_title
'' # proposal_link(eventable)
2016-04-26 12:08:12 +00:00
end
def attachment_text
'' # "#{eventable.description}\n"
2016-04-26 12:08:12 +00:00
end
def attachment_fields
[{
title: 'nothing',
value: 'nothing'
}] # [motion_vote_field]
2016-04-26 12:08:12 +00:00
end
end