Class: InvisibleCollector::Model::Group
- Inherits:
-
AbstractModel
- Object
- AbstractModel
- InvisibleCollector::Model::Group
- Defined in:
- lib/invisible_collector/models/group.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
-
#name ⇒ Object
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Group
constructor
A new instance of Group.
Methods included from ModelAttributes
Constructor Details
#initialize(options = {}) ⇒ Group
Returns a new instance of Group.
9 10 11 12 13 |
# File 'lib/invisible_collector/models/group.rb', line 9 def initialize( = {}) = .with_indifferent_access @id = [:id] @name = [:name] end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/invisible_collector/models/group.rb', line 6 def id @id end |
#name ⇒ Object
Returns the value of attribute name.
7 8 9 |
# File 'lib/invisible_collector/models/group.rb', line 7 def name @name end |