debian-mirror-gitlab/lib/microsoft_teams/activity.rb
2018-12-13 13:39:08 +05:30

22 lines
413 B
Ruby

# frozen_string_literal: true
module MicrosoftTeams
class Activity
def initialize(title:, subtitle:, text:, image:)
@title = title
@subtitle = subtitle
@text = text
@image = image
end
def prepare
{
'activityTitle' => @title,
'activitySubtitle' => @subtitle,
'activityText' => @text,
'activityImage' => @image
}
end
end
end