Sha256: 0fc519a9b15e3f7f2f3ea9629f308f01418f55ebd9d316e7d94ea1993b4202f6

Contents?: true

Size: 458 Bytes

Versions: 2

Compression:

Stored size: 458 Bytes

Contents

# frozen_string_literal: true

module CoinMarketCapitalization
  # Fiat class contains methods mapped to corresponding API endpoints for fiat currencies.
  # This category currently includes 1 endpoint
  class Fiat < Base
    BASE_URL = "https://pro-api.coinmarketcap.com/v1/fiat"

    def initialize(api_key:, base_url: BASE_URL, adapter: Faraday.default_adapter)
      super
    end

    def map(**args)
      make_request("map", **args)
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
coin_market_capitalization-0.1.2 lib/coin_market_capitalization/fiat.rb
coin_market_capitalization-0.1.1 lib/coin_market_capitalization/fiat.rb