Class: ChinaShop::OrderBook
- Inherits:
-
Object
- Object
- ChinaShop::OrderBook
- Defined in:
- lib/chinashop/order_book.rb
Instance Attribute Summary collapse
-
#all ⇒ Object
Returns the value of attribute all.
Instance Method Summary collapse
-
#initialize(order_book = {}) ⇒ OrderBook
constructor
A new instance of OrderBook.
Constructor Details
#initialize(order_book = {}) ⇒ OrderBook
Returns a new instance of OrderBook.
5 6 7 |
# File 'lib/chinashop/order_book.rb', line 5 def initialize(order_book = {}) self.all = order_book end |
Instance Attribute Details
#all ⇒ Object
Returns the value of attribute all.
3 4 5 |
# File 'lib/chinashop/order_book.rb', line 3 def all @all end |