class Bitfinex::Models::FundingOffer
Constants
- BOOL_FIELDS
- FIELDS
Public Class Methods
new(data)
click to toggle source
Calls superclass method
# File lib/models/funding_offer.rb, line 29 def initialize (data) super(data, FIELDS, BOOL_FIELDS) end
unserialize(data)
click to toggle source
# File lib/models/funding_offer.rb, line 33 def self.unserialize (data) return Model.unserialize(data, FIELDS, BOOL_FIELDS) end
Public Instance Methods
to_new_order_packet()
click to toggle source
# File lib/models/funding_offer.rb, line 37 def to_new_order_packet data = { :type => @type, :symbol => @symbol, :amount => BigDecimal(@amount, 8).to_s, :rate => BigDecimal(@rate, 8).to_s, :period => 2 } if !@flags.nil? data[:flags] = @flags end data end