2016-09-24 03:00:46 +00:00
# frozen_string_literal: true
2016-03-12 23:36:38 +00:00
class Webhooks :: Slack :: SynapseAddedToMap < Webhooks :: Slack :: Base
def text
2016-07-26 00:14:23 +00:00
" \" * #{ eventable . mappable . topic1 . name } * #{ eventable . mappable . desc || '->' } * #{ eventable . mappable . topic2 . name } * \" was added as a connection to the map * #{ view_map_on_metamaps } * "
2016-03-12 23:36:38 +00:00
end
def attachment_fallback
2016-07-26 00:14:23 +00:00
'' # {}"*#{eventable.name}*\n#{eventable.description}\n"
2016-03-12 23:36:38 +00:00
end
def attachment_title
2016-07-26 00:14:23 +00:00
'' # proposal_link(eventable)
2016-03-12 23:36:38 +00:00
end
def attachment_text
2016-07-26 00:14:23 +00:00
'' # "#{eventable.description}\n"
2016-03-12 23:36:38 +00:00
end
def attachment_fields
[ {
2016-07-26 00:14:23 +00:00
title : 'nothing' ,
value : 'nothing'
} ] # [motion_vote_field]
2016-03-12 23:36:38 +00:00
end
end