class Coinone::Order::LimitOrders::LimitOrder
Attributes
fee_rate[R]
index[R]
order_id[R]
price[R]
qty[R]
timestamp[R]
type[R]
Public Class Methods
new(options={})
click to toggle source
# File lib/coinone/order/limit_orders/limit_order.rb, line 11 def initialize(options={}) @index = nil @timestamp = nil @price = nil @type = nil @qty = nil @fee_rate = nil @order_id = nil update_response(options) end
Public Instance Methods
update_response(params={})
click to toggle source
# File lib/coinone/order/limit_orders/limit_order.rb, line 26 def update_response(params={}) @index = params[:index].to_i if params.has_key? :index @timestamp = params[:timestamp].to_i if params.has_key? :timestamp @price = params[:price].to_i if params.has_key? :price @qty = params[:qty].to_f if params.has_key? :qty @order_id = params[:orderId] if params.has_key? :orderId @type = params[:type] if params.has_key? :type @fee_rate = params[:feeRate].to_f if params.has_key? :feeRate end