Class: Beanie::ProductPrice

Inherits:
Api
  • Object
show all
Defined in:
lib/beanie/product_price.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Api

all, build_url, #construct_path, delete, #extract, #field_name, find, get, #object_name, #populate, post, put, #save!, set_headers

Constructor Details

#initializeProductPrice

Initialize instance variables



36
37
38
39
40
41
42
# File 'lib/beanie/product_price.rb', line 36

def initialize
  @id = nil
  @amount = nil
  @effective = nil
  @sales_tax_id = nil
  @product_id = nil
end

Instance Attribute Details

#amountObject

Returns the value of attribute amount.



32
33
34
# File 'lib/beanie/product_price.rb', line 32

def amount
  @amount
end

#effectiveObject

Returns the value of attribute effective.



32
33
34
# File 'lib/beanie/product_price.rb', line 32

def effective
  @effective
end

#idObject

Returns the value of attribute id.



32
33
34
# File 'lib/beanie/product_price.rb', line 32

def id
  @id
end

#product_idObject

Returns the value of attribute product_id.



32
33
34
# File 'lib/beanie/product_price.rb', line 32

def product_id
  @product_id
end

#sales_tax_idObject

Returns the value of attribute sales_tax_id.



32
33
34
# File 'lib/beanie/product_price.rb', line 32

def sales_tax_id
  @sales_tax_id
end