class Messenger::Elements::Order

Attributes

currency[RW]
order_number[RW]
order_url[RW]
payment_method[RW]
timestamp[RW]

Public Class Methods

new(order_number:, currency:, payment_method:, timestamp: nil, order_url: nil) click to toggle source
# File lib/messenger/components/elements/receipt/order.rb, line 10
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