Class: IpagosRubySdk::LineItem
- Defined in:
- lib/ipagos_ruby_sdk/models/line_item.rb
Instance Attribute Summary collapse
-
#product_name ⇒ Object
Returns the value of attribute product_name.
-
#product_sku ⇒ Object
Returns the value of attribute product_sku.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
Instance Method Summary collapse
Methods inherited from BaseModel
Constructor Details
This class inherits a constructor from IpagosRubySdk::BaseModel
Instance Attribute Details
#product_name ⇒ Object
Returns the value of attribute product_name.
5 6 7 |
# File 'lib/ipagos_ruby_sdk/models/line_item.rb', line 5 def product_name @product_name end |
#product_sku ⇒ Object
Returns the value of attribute product_sku.
5 6 7 |
# File 'lib/ipagos_ruby_sdk/models/line_item.rb', line 5 def product_sku @product_sku end |
#quantity ⇒ Object
Returns the value of attribute quantity.
5 6 7 |
# File 'lib/ipagos_ruby_sdk/models/line_item.rb', line 5 def quantity @quantity end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
5 6 7 |
# File 'lib/ipagos_ruby_sdk/models/line_item.rb', line 5 def unit_price @unit_price end |
Instance Method Details
#to_h ⇒ Object
7 8 9 10 11 12 13 14 |
# File 'lib/ipagos_ruby_sdk/models/line_item.rb', line 7 def to_h { unitPrice: unit_price, quantity: quantity, productName: product_name, productSku: product_sku }.compact end |