Class: Apidone::Client::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/apidone-client/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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
  meta_fields(data)
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/apidone-client/resource.rb', line 5

def data
  @data
end