Class: Slack::Message

Inherits:
Object
  • Object
show all
Defined in:
lib/edi/slack/message.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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_idObject

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_nameObject

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_idObject

Returns the value of attribute team_id.



4
5
6
# File 'lib/edi/slack/message.rb', line 4

def team_id
  @team_id
end

#textObject

Returns the value of attribute text.



4
5
6
# File 'lib/edi/slack/message.rb', line 4

def text
  @text
end

#trigger_wordObject

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_idObject

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_nameObject

Returns the value of attribute user_name.



4
5
6
# File 'lib/edi/slack/message.rb', line 4

def user_name
  @user_name
end