class Cryptoexchange::Exchanges::Uex::Services::Pairs

Constants

PAIRS_URL

Public Instance Methods

adapt(data) click to toggle source
# File lib/cryptoexchange/exchanges/uex/services/pairs.rb, line 12
def adapt(data)
  data.map do |pairs|
    Cryptoexchange::Models::MarketPair.new(
      base: pairs['base_coin'],
      target: pairs['count_coin'],
      market: Uex::Market::NAME
    )
  end
end
fetch() click to toggle source
Calls superclass method Cryptoexchange::Services::Pairs#fetch
# File lib/cryptoexchange/exchanges/uex/services/pairs.rb, line 7
def fetch
  output = super
  adapt(output['data'])
end