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