class Coinmarketcap::Wrapper::MarketData

Public Class Methods

global(**opts) click to toggle source
# File lib/coinmarketcap/wrapper/market_data.rb, line 6
def self.global(**opts)
  response = Faraday.get "#{BASE_API_URL}/#{GLOBAL_DATA_PATH}/", opts
  attributes = JSON.parse(response.body)
  new(attributes)
end