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.
648 649 650 651 652 |
# File 'lib/stripe/resources/terminal/reader.rb', line 648 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.
642 643 644 |
# File 'lib/stripe/resources/terminal/reader.rb', line 642 def amount @amount end |
#description ⇒ Object
The description or name of the item.
644 645 646 |
# File 'lib/stripe/resources/terminal/reader.rb', line 644 def description @description end |
#quantity ⇒ Object
The quantity of the line item being purchased.
646 647 648 |
# File 'lib/stripe/resources/terminal/reader.rb', line 646 def quantity @quantity end |