Class: BigcommerceAPI::OrderCoupon
- Defined in:
- lib/bigcommerce_api/order_coupon.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
Returns the value of attribute amount.
-
#code ⇒ Object
Returns the value of attribute code.
-
#coupon_id ⇒ Object
Returns the value of attribute coupon_id.
-
#discount ⇒ Object
Returns the value of attribute discount.
-
#id ⇒ Object
Returns the value of attribute id.
-
#order_id ⇒ Object
Returns the value of attribute order_id.
-
#type ⇒ Object
Returns the value of attribute type.
Attributes inherited from Resource
Method Summary
Methods inherited from Resource
all, #assign_attributes, belongs_to, #changed, #create, #delete, find, #find_for_reload, has_many, has_one, http_request, #initialize, #mark_dirty!, #parent, #reload, #resource, resource, #resource_url, #save, #update_attributes
Methods inherited from Base
#attributes, clean!, date_adjust, default_options, #initialize, #store, #time, to_rfc2822
Constructor Details
This class inherits a constructor from BigcommerceAPI::Resource
Instance Attribute Details
#amount ⇒ Object
Returns the value of attribute amount.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def amount @amount end |
#code ⇒ Object
Returns the value of attribute code.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def code @code end |
#coupon_id ⇒ Object
Returns the value of attribute coupon_id.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def coupon_id @coupon_id end |
#discount ⇒ Object
Returns the value of attribute discount.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def discount @discount end |
#id ⇒ Object
Returns the value of attribute id.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def id @id end |
#order_id ⇒ Object
Returns the value of attribute order_id.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def order_id @order_id end |
#type ⇒ Object
Returns the value of attribute type.
3 4 5 |
# File 'lib/bigcommerce_api/order_coupon.rb', line 3 def type @type end |