Class: Stripe::Terminal::Reader::SetReaderDisplayParams::Cart::LineItem
- Inherits:
-
RequestParams
- Object
- RequestParams
- Stripe::Terminal::Reader::SetReaderDisplayParams::Cart::LineItem
- Defined in:
- lib/stripe/resources/terminal/reader.rb
Instance Attribute Summary collapse
-
#amount ⇒ Object
The price of the item in cents.
-
#description ⇒ Object
The description or name of the item.
-
#quantity ⇒ Object
The quantity of the line item being purchased.
Instance Method Summary collapse
-
#initialize(amount: nil, description: nil, quantity: nil) ⇒ LineItem
constructor
A new instance of LineItem.
Methods inherited from RequestParams
Constructor Details
#initialize(amount: nil, description: nil, quantity: nil) ⇒ LineItem
Returns a new instance of LineItem.
881 882 883 884 885 |
# File 'lib/stripe/resources/terminal/reader.rb', line 881 def initialize(amount: nil, description: nil, quantity: nil) @amount = amount @description = description @quantity = quantity end |
Instance Attribute Details
#amount ⇒ Object
The price of the item in cents.
875 876 877 |
# File 'lib/stripe/resources/terminal/reader.rb', line 875 def amount @amount end |
#description ⇒ Object
The description or name of the item.
877 878 879 |
# File 'lib/stripe/resources/terminal/reader.rb', line 877 def description @description end |
#quantity ⇒ Object
The quantity of the line item being purchased.
879 880 881 |
# File 'lib/stripe/resources/terminal/reader.rb', line 879 def quantity @quantity end |