Class: Boty::Slack::User

Inherits:
Object
  • Object
show all
Defined in:
lib/boty/slack/user.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#idObject

Returns the value of attribute id.



4
5
6
# File 'lib/boty/slack/user.rb', line 4

def id
  @id
end

#nameObject

Returns the value of attribute name.



4
5
6
# File 'lib/boty/slack/user.rb', line 4

def name
  @name
end