class Cryptoexchange::Exchanges::Bgogo::Services::Pairs
Constants
- PAIRS_URL
Public Instance Methods
adapt(output)
click to toggle source
# File lib/cryptoexchange/exchanges/bgogo/services/pairs.rb, line 12 def adapt(output) output.map do |pair, _ticker| next if pair == 'status' base, target = pair.split('/') Cryptoexchange::Models::MarketPair.new( base: base, target: target, market: Bgogo::Market::NAME ) end.compact end
fetch()
click to toggle source
# File lib/cryptoexchange/exchanges/bgogo/services/pairs.rb, line 7 def fetch output = Bgogo::Market.pairs_fetch(PAIRS_URL) adapt(output) end