Class: Coinone::Order::CancelOrderResponse
- Inherits:
-
Object
- Object
- Coinone::Order::CancelOrderResponse
- Defined in:
- lib/coinone/order/cancel_order_response.rb
Instance Attribute Summary collapse
-
#result ⇒ Object
readonly
Returns the value of attribute result.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ CancelOrderResponse
constructor
A new instance of CancelOrderResponse.
- #update_response(params = {}) ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ CancelOrderResponse
Returns a new instance of CancelOrderResponse.
10 11 12 13 14 15 16 17 |
# File 'lib/coinone/order/cancel_order_response.rb', line 10 def initialize(={}) @result = [:result] || nil update_response() end |
Instance Attribute Details
#result ⇒ Object (readonly)
Returns the value of attribute result.
8 9 10 |
# File 'lib/coinone/order/cancel_order_response.rb', line 8 def result @result end |
Instance Method Details
#update_response(params = {}) ⇒ Object
19 20 21 22 23 |
# File 'lib/coinone/order/cancel_order_response.rb', line 19 def update_response(params={}) @result = params[:result] if params.has_key? :result end |