Class: BreadMachine::OrderInfo

Inherits:
Object
  • Object
show all
Defined in:
lib/breadmachine/dto/order_info.rb

Overview

Order reference information for auditing purposes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(attributes = {}) ⇒ OrderInfo

It is strongly advised that these properties are included in transactions, but they are not required.

Suggested usage:

:order_reference should be something like the order or invoice number. :order_information could be the first 255 characters of the names of the

items in the order (as an example) - basically anything that can
identify an order in a human-friendly way.


19
20
21
# File 'lib/breadmachine/dto/order_info.rb', line 19

def initialize(attributes = {})
  attributes.each { |key, value| send("#{key}=", value) }
end

Instance Attribute Details

#order_informationObject

Returns the value of attribute order_information.



7
8
9
# File 'lib/breadmachine/dto/order_info.rb', line 7

def order_information
  @order_information
end

#order_referenceObject

Returns the value of attribute order_reference.



7
8
9
# File 'lib/breadmachine/dto/order_info.rb', line 7

def order_reference
  @order_reference
end