Class: Slacks::Team

Inherits:
Object
  • Object
show all
Defined in:
lib/slacks/team.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#domainObject (readonly)

Returns the value of attribute domain.



3
4
5
# File 'lib/slacks/team.rb', line 3

def domain
  @domain
end

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/slacks/team.rb', line 3

def id
  @id
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/slacks/team.rb', line 3

def name
  @name
end