Class: ChinaShop::OrderBook

Inherits:
Object
  • Object
show all
Defined in:
lib/chinashop/order_book.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#allObject

Returns the value of attribute all.



3
4
5
# File 'lib/chinashop/order_book.rb', line 3

def all
  @all
end