Sha256: b52e53321ed0a76ce56ee892647d5eb1bae7a4d93ea7b8fd1a4ae83cbd2cf0e0

Contents?: true

Size: 1.2 KB

Versions: 2

Compression:

Stored size: 1.2 KB

Contents

# frozen_string_literal: true

require 'faraday'
require 'faraday_middleware'
require 'logger'

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/transaction'
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.4 lib/harmony/api.rb
harmony-api-0.1.3 lib/harmony/api.rb