Class: Ravelry::Data
- Inherits:
-
Object
- Object
- Ravelry::Data
- Defined in:
- lib/ravelry/data.rb
Overview
Parent class that controls initialization and fetching for API objects.
Instance Attribute Summary collapse
-
#data ⇒ Object
Returns the value of attribute data.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id = nil) ⇒ Data
constructor
A new instance of Data.
Constructor Details
#initialize(id = nil) ⇒ Data
Returns a new instance of Data.
9 10 11 |
# File 'lib/ravelry/data.rb', line 9 def initialize(id=nil) @id = id end |
Instance Attribute Details
#data ⇒ Object
Returns the value of attribute data.
7 8 9 |
# File 'lib/ravelry/data.rb', line 7 def data @data end |
#id ⇒ Object
Returns the value of attribute id.
6 7 8 |
# File 'lib/ravelry/data.rb', line 6 def id @id end |