Class: Messenger::Elements::Order
- Inherits:
-
Components::Element
- Object
- Components::Element
- Messenger::Elements::Order
- Defined in:
- lib/messenger/components/elements/receipt/order.rb
Instance Method Summary collapse
-
#initialize(order_number:, currency:, payment_method:, timestamp: nil, order_url: nil) ⇒ Order
constructor
A new instance of Order.
Methods inherited from Components::Element
Constructor Details
#initialize(order_number:, currency:, payment_method:, timestamp: nil, order_url: nil) ⇒ Order
Returns a new instance of Order.
6 7 8 9 10 11 12 |
# File 'lib/messenger/components/elements/receipt/order.rb', line 6 def initialize(order_number:, currency:, payment_method:, timestamp: nil, order_url: nil) @order_number = order_number @currency = currency @payment_method = payment_method = @order_url = order_url end |