Class: ChinaShop::Sell

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(buy = {}) ⇒ Sell

Returns a new instance of Sell.



5
6
7
8
# File 'lib/chinashop/sell.rb', line 5

def initialize(buy = {})
  self.all    = buy
  self.result = buy['result']
end

Instance Attribute Details

#allObject

Returns the value of attribute all.



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

def all
  @all
end

#resultObject

Returns the value of attribute result.



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

def result
  @result
end