Class: MicrosoftTeams::Activity
- Inherits:
-
Object
- Object
- MicrosoftTeams::Activity
- Defined in:
- lib/microsoft_teams/activity.rb
Instance Method Summary collapse
-
#initialize(title:, subtitle:, text:, image:) ⇒ Activity
constructor
A new instance of Activity.
- #prepare ⇒ Object
Constructor Details
#initialize(title:, subtitle:, text:, image:) ⇒ Activity
Returns a new instance of Activity.
5 6 7 8 9 10 |
# File 'lib/microsoft_teams/activity.rb', line 5 def initialize(title:, subtitle:, text:, image:) @title = title @subtitle = subtitle @text = text @image = image end |
Instance Method Details
#prepare ⇒ Object
12 13 14 15 16 17 18 19 |
# File 'lib/microsoft_teams/activity.rb', line 12 def prepare { 'activityTitle' => @title, 'activitySubtitle' => @subtitle, 'activityText' => @text, 'activityImage' => @image } end |