Class: Slack::Message
- Inherits:
-
Object
- Object
- Slack::Message
- Defined in:
- lib/edi/slack/message.rb
Instance Attribute Summary collapse
-
#channel_id ⇒ Object
Returns the value of attribute channel_id.
-
#channel_name ⇒ Object
Returns the value of attribute channel_name.
-
#team_id ⇒ Object
Returns the value of attribute team_id.
-
#text ⇒ Object
Returns the value of attribute text.
-
#trigger_word ⇒ Object
Returns the value of attribute trigger_word.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
-
#user_name ⇒ Object
Returns the value of attribute user_name.
Instance Method Summary collapse
-
#initialize(params) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(params) ⇒ Message
Returns a new instance of Message.
6 7 8 9 10 11 12 13 14 |
# File 'lib/edi/slack/message.rb', line 6 def initialize(params) @text = params["text"] @channel_id = params["channel_id"] @team_id = params["team_id"] @channel_name = params["channel_name"] @user_id = params["user_id"] @user_name = params["user_name"] @trigger_word = params["trigger_word"] end |
Instance Attribute Details
#channel_id ⇒ Object
Returns the value of attribute channel_id.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def channel_id @channel_id end |
#channel_name ⇒ Object
Returns the value of attribute channel_name.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def channel_name @channel_name end |
#team_id ⇒ Object
Returns the value of attribute team_id.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def team_id @team_id end |
#text ⇒ Object
Returns the value of attribute text.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def text @text end |
#trigger_word ⇒ Object
Returns the value of attribute trigger_word.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def trigger_word @trigger_word end |
#user_id ⇒ Object
Returns the value of attribute user_id.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def user_id @user_id end |
#user_name ⇒ Object
Returns the value of attribute user_name.
4 5 6 |
# File 'lib/edi/slack/message.rb', line 4 def user_name @user_name end |