Class: Coinone::Order::CancelAllOrderResponse

Inherits:
Object
  • Object
show all
Defined in:
lib/coinone/order/market_buy.rb,
lib/coinone/order/market_sell.rb,
lib/coinone/order/cancel_all_order_response.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ CancelAllOrderResponse

Returns a new instance of CancelAllOrderResponse.



11
12
13
14
15
16
17
18
19
20
# File 'lib/coinone/order/market_buy.rb', line 11

def initialize(options={})

  @result = options[:result] || nil
  @success_canceled_orders = nil
  @overall_orders = nil

  update_response(options)


end

Instance Attribute Details

#overall_ordersObject (readonly)

Returns the value of attribute overall_orders.



9
10
11
# File 'lib/coinone/order/market_buy.rb', line 9

def overall_orders
  @overall_orders
end

#resultObject (readonly)

Returns the value of attribute result.



8
9
10
# File 'lib/coinone/order/market_buy.rb', line 8

def result
  @result
end

#success_canceled_ordersObject (readonly)

Returns the value of attribute success_canceled_orders.



9
10
11
# File 'lib/coinone/order/market_buy.rb', line 9

def success_canceled_orders
  @success_canceled_orders
end

Instance Method Details

#update_response(params = {}) ⇒ Object



22
23
24
25
26
27
28
# File 'lib/coinone/order/market_buy.rb', line 22

def update_response(params={})

  @result = params[:result] if params.has_key? :result
  @success_canceled_orders = params[:successCanceledOrders] if params.has_key? :successCanceledOrders
  @overall_orders = params[:overallOrders] if params.has_key? :overallOrders

end