Sha256: a7495de8d58824be3f95e8e0428b2106b9d42f1ff09f28dfb257957b14cd86b6

Contents?: true

Size: 613 Bytes

Versions: 3

Compression:

Stored size: 613 Bytes

Contents

module CoinMarketCap
  module Api
    extend Config::Client::Accessor
    extend Config::Logger::Accessor

    class Client
      include Endpoints::Cryptocurrency

      include Cloud::Connection
      include Cloud::Request

      attr_accessor(*Config::Client::ATTRIBUTES)

      attr_reader :logger

      def initialize(options = {})
        Config::Client::ATTRIBUTES.each do |key|
          send("#{key}=", options[key] || CoinMarketCap::Api.config.send(key))
        end
        @logger = Config::Logger.dup
        @logger.instance = options[:logger] if options.key?(:logger)
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
coinmarketcap-ruby-client-1.1.1 lib/coinmarketcap/api/client.rb
coinmarketcap-ruby-client-1.1.0 lib/coinmarketcap/api/client.rb
coinmarketcap-ruby-client-1.0.0 lib/coinmarketcap/api/client.rb