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