Class: Boty::Slack::User
- Inherits:
-
Object
- Object
- Boty::Slack::User
- Defined in:
- lib/boty/slack/user.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(info) ⇒ User
constructor
A new instance of User.
Constructor Details
#initialize(info) ⇒ User
Returns a new instance of User.
6 7 8 9 |
# File 'lib/boty/slack/user.rb', line 6 def initialize(info) @id = info["id"] @name = info["name"] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
4 5 6 |
# File 'lib/boty/slack/user.rb', line 4 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
4 5 6 |
# File 'lib/boty/slack/user.rb', line 4 def name @name end |