Class: Order
- Includes:
- MongoPersist
- Defined in:
- lib/mongo_persist/sandbox.rb
Constant Summary
Constants included from MongoPersist
Instance Attribute Summary collapse
-
#customers ⇒ Object
Returns the value of attribute customers.
-
#po_number ⇒ Object
Returns the value of attribute po_number.
Attributes included from MongoPersist
Instance Method Summary collapse
Methods included from MongoPersist
#can_mongo_convert?, #from_mongo_hash, included, #mongo_addl_attributes, #mongo_attributes, #mongo_child_attributes, #new_hashx, #to_mongo_hash, #to_mongo_ref_hash
Instance Attribute Details
#customers ⇒ Object
Returns the value of attribute customers.
9 10 11 |
# File 'lib/mongo_persist/sandbox.rb', line 9 def customers @customers end |
#po_number ⇒ Object
Returns the value of attribute po_number.
9 10 11 |
# File 'lib/mongo_persist/sandbox.rb', line 9 def po_number @po_number end |
Instance Method Details
#products ⇒ Object
12 13 14 |
# File 'lib/mongo_persist/sandbox.rb', line 12 def products order_products.map { |x| x.product } end |