Class: ChargifyApi::ListItem
- Inherits:
-
OpenStruct
- Object
- OpenStruct
- ChargifyApi::ListItem
- Defined in:
- lib/list_item.rb
Instance Attribute Summary collapse
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ ListItem
constructor
A new instance of ListItem.
Constructor Details
#initialize(attributes = {}) ⇒ ListItem
Returns a new instance of ListItem.
5 6 7 8 9 |
# File 'lib/list_item.rb', line 5 def initialize(attributes = {}) @id = attributes['id'] super end |
Instance Attribute Details
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/list_item.rb', line 3 def id @id end |