Class: OrderProduct
- Includes:
- MongoPersist
- Defined in:
- lib/mongo_persist/sandbox.rb
Constant Summary
Constants included from MongoPersist
Instance Attribute Summary collapse
-
#product ⇒ Object
Returns the value of attribute product.
-
#quantity ⇒ Object
Returns the value of attribute quantity.
-
#unit_price ⇒ Object
Returns the value of attribute unit_price.
Attributes included from MongoPersist
Method Summary
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
#product ⇒ Object
Returns the value of attribute product.
19 20 21 |
# File 'lib/mongo_persist/sandbox.rb', line 19 def product @product end |
#quantity ⇒ Object
Returns the value of attribute quantity.
19 20 21 |
# File 'lib/mongo_persist/sandbox.rb', line 19 def quantity @quantity end |
#unit_price ⇒ Object
Returns the value of attribute unit_price.
19 20 21 |
# File 'lib/mongo_persist/sandbox.rb', line 19 def unit_price @unit_price end |