Class: Apidone::Client::Resource
- Inherits:
-
Object
- Object
- Apidone::Client::Resource
- Defined in:
- lib/apidone-client/resource.rb
Instance Attribute Summary collapse
-
#data ⇒ Object
readonly
Returns the value of attribute data.
Instance Method Summary collapse
-
#initialize(data = {}) ⇒ Resource
constructor
A new instance of Resource.
Constructor Details
#initialize(data = {}) ⇒ Resource
Returns a new instance of Resource.
6 7 8 9 |
# File 'lib/apidone-client/resource.rb', line 6 def initialize(data ={}) @data = data (data) end |
Instance Attribute Details
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/apidone-client/resource.rb', line 5 def data @data end |