Class: Coinone::Order::CancelAllOrderResponse
- Inherits:
-
Object
- Object
- Coinone::Order::CancelAllOrderResponse
- 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
-
#overall_orders ⇒ Object
readonly
Returns the value of attribute overall_orders.
-
#result ⇒ Object
readonly
Returns the value of attribute result.
-
#success_canceled_orders ⇒ Object
readonly
Returns the value of attribute success_canceled_orders.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CancelAllOrderResponse
constructor
A new instance of CancelAllOrderResponse.
- #update_response(params = {}) ⇒ Object
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(={}) @result = [:result] || nil @success_canceled_orders = nil @overall_orders = nil update_response() end |
Instance Attribute Details
#overall_orders ⇒ Object (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 |
#result ⇒ Object (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_orders ⇒ Object (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 |