Class: Slacks::Team
- Inherits:
-
Object
- Object
- Slacks::Team
- Defined in:
- lib/slacks/team.rb
Instance Attribute Summary collapse
-
#domain ⇒ Object
readonly
Returns the value of attribute domain.
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(data) ⇒ Team
constructor
A new instance of Team.
Constructor Details
#initialize(data) ⇒ Team
Returns a new instance of Team.
5 6 7 8 9 |
# File 'lib/slacks/team.rb', line 5 def initialize(data) @id = data.fetch("id") @name = data.fetch("name") @domain = data.fetch("domain") end |
Instance Attribute Details
#domain ⇒ Object (readonly)
Returns the value of attribute domain.
3 4 5 |
# File 'lib/slacks/team.rb', line 3 def domain @domain end |
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/slacks/team.rb', line 3 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
3 4 5 |
# File 'lib/slacks/team.rb', line 3 def name @name end |