Module: Harmony::Api

Defined in:
lib/harmony/api.rb,
lib/harmony/api/client.rb,
lib/harmony/api/version.rb,
lib/harmony/api/utilities.rb,
lib/harmony/api/v1/client.rb,
lib/harmony/api/v1/logs/log.rb,
lib/harmony/api/configuration.rb,
lib/harmony/api/v1/misc/utility.rb,
lib/harmony/api/v1/staking/error.rb,
lib/harmony/api/v1/filters/filter.rb,
lib/harmony/api/v1/staking/utility.rb,
lib/harmony/api/v1/accounts/account.rb,
lib/harmony/api/v1/blockchain/block.rb,
lib/harmony/api/v1/staking/delegator.rb,
lib/harmony/api/v1/staking/validator.rb,
lib/harmony/api/v1/contracts/contract.rb,
lib/harmony/api/v1/transactions/error.rb,
lib/harmony/api/v1/blockchain/protocol.rb,
lib/harmony/api/v1/staking/transaction.rb,
lib/harmony/api/v1/transactions/transaction.rb,
lib/harmony/api/v1/cross_sharding/cross_shard.rb

Defined Under Namespace

Modules: V1 Classes: Client, Configuration, Error, Utilities

Constant Summary collapse

VERSION =
"0.1.4"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



35
36
37
# File 'lib/harmony/api.rb', line 35

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

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



43
44
45
# File 'lib/harmony/api.rb', line 43

def configure
  yield(configuration)
end

.resetObject



39
40
41
# File 'lib/harmony/api.rb', line 39

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