Class: Shiftzilla::Group
- Inherits:
-
Object
- Object
- Shiftzilla::Group
- Defined in:
- lib/shiftzilla/group.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#lead ⇒ Object
readonly
Returns the value of attribute lead.
Instance Method Summary collapse
-
#initialize(ginfo) ⇒ Group
constructor
A new instance of Group.
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
#id ⇒ Object (readonly)
Returns the value of attribute id.
3 4 5 |
# File 'lib/shiftzilla/group.rb', line 3 def id @id end |
#lead ⇒ Object (readonly)
Returns the value of attribute lead.
3 4 5 |
# File 'lib/shiftzilla/group.rb', line 3 def lead @lead end |