Class: Mollie::Payment::Line
Instance Attribute Summary collapse
-
#categories ⇒ Object
Returns the value of attribute categories.
-
#description ⇒ Object
Returns the value of attribute description.
-
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
-
#image_url ⇒ Object
Returns the value of attribute image_url.
-
#product_url ⇒ Object
Returns the value of attribute product_url.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#quantity_unit ⇒ Object
Returns the value of attribute quantity_unit.
-
#recurring ⇒ Object
Returns the value of attribute recurring.
-
#sku ⇒ Object
Returns the value of attribute sku.
-
#total_amount ⇒ Object
Returns the value of attribute total_amount.
-
#type ⇒ Object
Returns the value of attribute type.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
-
#vat_amount ⇒ Object
Returns the value of attribute vat_amount.
-
#vat_rate ⇒ Object
Returns the value of attribute vat_rate.
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
all, #assign_attributes, cancel, create, #delete, delete, get, id_param, #initialize, parent_id, request, resource_name, update, #update
Constructor Details
This class inherits a constructor from Mollie::Base
Instance Attribute Details
#categories ⇒ Object
Returns the value of attribute categories.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def categories @categories end |
#description ⇒ Object
Returns the value of attribute description.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def description @description end |
#discount_amount ⇒ Object
Returns the value of attribute discount_amount.
14 15 16 |
# File 'lib/mollie/payment/line.rb', line 14 def discount_amount @discount_amount end |
#image_url ⇒ Object
Returns the value of attribute image_url.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def image_url @image_url end |
#product_url ⇒ Object
Returns the value of attribute product_url.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def product_url @product_url end |
#quantity ⇒ Object
Returns the value of attribute quantity.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def quantity @quantity end |
#quantity_unit ⇒ Object
Returns the value of attribute quantity_unit.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def quantity_unit @quantity_unit end |
#recurring ⇒ Object
Returns the value of attribute recurring.
14 15 16 |
# File 'lib/mollie/payment/line.rb', line 14 def recurring @recurring end |
#sku ⇒ Object
Returns the value of attribute sku.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def sku @sku end |
#total_amount ⇒ Object
Returns the value of attribute total_amount.
14 15 16 |
# File 'lib/mollie/payment/line.rb', line 14 def total_amount @total_amount end |
#type ⇒ Object
Returns the value of attribute type.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def type @type end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
14 15 16 |
# File 'lib/mollie/payment/line.rb', line 14 def unit_price @unit_price end |
#vat_amount ⇒ Object
Returns the value of attribute vat_amount.
14 15 16 |
# File 'lib/mollie/payment/line.rb', line 14 def vat_amount @vat_amount end |
#vat_rate ⇒ Object
Returns the value of attribute vat_rate.
4 5 6 |
# File 'lib/mollie/payment/line.rb', line 4 def vat_rate @vat_rate end |
Instance Method Details
#discounted? ⇒ Boolean
20 21 22 |
# File 'lib/mollie/payment/line.rb', line 20 def discounted? !@discount_amount.nil? end |