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.
341 342 343 344 345 |
# File 'lib/stripe/resources/terminal/reader.rb', line 341 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.
335 336 337 |
# File 'lib/stripe/resources/terminal/reader.rb', line 335 def amount @amount end |
#description ⇒ Object
The description or name of the item.
337 338 339 |
# File 'lib/stripe/resources/terminal/reader.rb', line 337 def description @description end |
#quantity ⇒ Object
The quantity of the line item being purchased.
339 340 341 |
# File 'lib/stripe/resources/terminal/reader.rb', line 339 def quantity @quantity end |