gitlab-org--gitlab-foss/lib/microsoft_teams/activity.rb

20 lines
382 B
Ruby
Raw Normal View History

module MicrosoftTeams
class Activity
2017-04-04 11:10:21 -04:00
def initialize(title:, subtitle:, text:, image:)
@title = title
@subtitle = subtitle
@text = text
@image = image
end
2017-04-04 11:10:21 -04:00
def prepare
{
'activityTitle' => @title,
'activitySubtitle' => @subtitle,
'activityText' => @text,
'activityImage' => @image
2017-04-04 11:10:21 -04:00
}
end
end
end