class Rbtce::Info
Public Class Methods
build( _, response )
click to toggle source
# File lib/rbtce/info.rb, line 7 def self.build( _, response ) response['pairs'].map { |symbol, options| new( symbol, options ) } end
fetch( options={} )
click to toggle source
# File lib/rbtce/info.rb, line 3 def self.fetch( options={} ) build( nil, Client.get( end_point, options ) ) end
Private Class Methods
end_point()
click to toggle source
# File lib/rbtce/info.rb, line 15 def self.end_point '/info' end
Private Instance Methods
required_fields()
click to toggle source
# File lib/rbtce/info.rb, line 19 def required_fields %w{ decimal_places min_price max_price min_amount hidden fee } end