Class: BreadMachine::OrderInfo
- Inherits:
-
Object
- Object
- BreadMachine::OrderInfo
- Defined in:
- lib/breadmachine/dto/order_info.rb
Overview
Order reference information for auditing purposes.
Instance Attribute Summary collapse
-
#order_information ⇒ Object
Returns the value of attribute order_information.
-
#order_reference ⇒ Object
Returns the value of attribute order_reference.
Instance Method Summary collapse
-
#initialize(attributes = {}) ⇒ OrderInfo
constructor
It is strongly advised that these properties are included in transactions, but they are not required.
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_information ⇒ Object
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_reference ⇒ Object
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 |