Sha256: 1c767f6c7b249515b46885caf4282c08f58e8b68c877146992c505c0e2920d36

Contents?: true

Size: 252 Bytes

Versions: 3

Compression:

Stored size: 252 Bytes

Contents

module Etherscan
  class Api
    attr_reader :connection

    def initialize(params = {})
      @connection = Etherscan::Client.new(params)
    end

    def get(params)
      response = connection.get(params)
      response['result']
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
etherscan_api-0.4.0 lib/etherscan/api.rb
etherscan_api-0.3.0 lib/etherscan/api.rb
etherscan_api-0.2.0 lib/etherscan/api.rb