Class: Shiftzilla::Group

Inherits:
Object
  • Object
show all
Defined in:
lib/shiftzilla/group.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ginfo) ⇒ Group

Returns a new instance of Group.



5
6
7
8
# File 'lib/shiftzilla/group.rb', line 5

def initialize(ginfo)
  @id    = ginfo['id']
  @lead  = ginfo['lead']
end

Instance Attribute Details

#idObject (readonly)

Returns the value of attribute id.



3
4
5
# File 'lib/shiftzilla/group.rb', line 3

def id
  @id
end

#leadObject (readonly)

Returns the value of attribute lead.



3
4
5
# File 'lib/shiftzilla/group.rb', line 3

def lead
  @lead
end