summaryrefslogtreecommitdiff
path: root/lib/microsoft_teams/activity.rb
blob: d2c420efdafa506f4ce9a4aa793edd2fa4514126 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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