Sha256: 2aba8b4e43a75d2ba7653fba5aed78234100abd1b7eb183bc4f5c96b0a17dd23

Contents?: true

Size: 1.14 KB

Versions: 2

Compression:

Stored size: 1.14 KB

Contents

# frozen_string_literal: true

require 'faraday'
require 'faraday_middleware'

require 'harmony/api/version'
require 'harmony/api/configuration'

require 'harmony/api/utilities'

require 'harmony/api/client'

require 'harmony/api/v1/blockchain/protocol'
require 'harmony/api/v1/blockchain/block'
require 'harmony/api/v1/accounts/account'
require 'harmony/api/v1/misc/utility'
require 'harmony/api/v1/transactions/transaction'
require 'harmony/api/v1/transactions/error'
require 'harmony/api/v1/staking/validator'
require 'harmony/api/v1/staking/delegator'
require 'harmony/api/v1/staking/utility'
require 'harmony/api/v1/staking/error'
require 'harmony/api/v1/contracts/contract'
require 'harmony/api/v1/filters/filter'
require 'harmony/api/v1/logs/log'
require 'harmony/api/v1/client'

module Harmony
  module Api
    class << self
      attr_writer :configuration

      def configuration
        @configuration ||= ::Harmony::Api::Configuration.new
      end

      def reset
        @configuration = ::Harmony::Api::Configuration.new
      end

      def configure
        yield(configuration)
      end
    end

    class Error < StandardError; end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
harmony-api-0.1.1 lib/harmony/api.rb
harmony-api-0.1.0 lib/harmony/api.rb