Class: ModernPricing::Resource

Inherits:
Object
  • Object
show all
Defined in:
lib/modern-pricing/resource.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(client, data) ⇒ Resource

Returns a new instance of Resource.



6
7
8
9
# File 'lib/modern-pricing/resource.rb', line 6

def initialize(client, data)
  @client = client
  @data = data
end

Instance Attribute Details

#dataObject (readonly)

Returns the value of attribute data.



4
5
6
# File 'lib/modern-pricing/resource.rb', line 4

def data
  @data
end

#relsObject (readonly)

Returns the value of attribute rels.



4
5
6
# File 'lib/modern-pricing/resource.rb', line 4

def rels
  @rels
end