Class: Messenger::Elements::Order

Inherits:
Components::Element show all
Defined in:
lib/messenger/components/elements/receipt/order.rb

Instance Method Summary collapse

Methods inherited from Components::Element

#build

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
  @timestamp = timestamp
  @order_url = order_url
end