Class: Chain::Config::Info

Inherits:
ResponseObject show all
Defined in:
lib/chain/config.rb

Defined Under Namespace

Classes: BuildConfig, Snapshot

Instance Attribute Summary collapse

Method Summary

Methods inherited from ResponseObject

#[], #[]=, #initialize, #to_h, #to_json

Constructor Details

This class inherits a constructor from Chain::ResponseObject

Instance Attribute Details

#block_heightInteger (readonly)

Returns:

  • (Integer)


84
# File 'lib/chain/config.rb', line 84

attrib :block_height

#blockchain_idString (readonly)

Returns:

  • (String)


80
# File 'lib/chain/config.rb', line 80

attrib :blockchain_id

#build_commitString (readonly)

Returns:

  • (String)


118
# File 'lib/chain/config.rb', line 118

attrib :build_commit

#build_configBuildConfig (readonly)

Returns:



130
# File 'lib/chain/config.rb', line 130

attrib(:build_config) { |raw| BuildConfig.new(raw) }

#build_dateString (readonly)

Date when the core binary was compiled.

The API may not return this field as an RFC3399 timestamp, so it is not converted into a Time object.

Returns:

  • (String)


126
# File 'lib/chain/config.rb', line 126

attrib :build_date

#configured_atTime (readonly)

Returns:

  • (Time)


60
# File 'lib/chain/config.rb', line 60

attrib :configured_at, rfc3339_time: true

#core_idString (readonly)

Returns:

  • (String)


110
# File 'lib/chain/config.rb', line 110

attrib :core_id

#crosscore_rpc_versionInteger (readonly)

Returns:

  • (Integer)


100
# File 'lib/chain/config.rb', line 100

attrib :crosscore_rpc_version

#generator_access_tokenString (readonly)

Returns:

  • (String)


76
# File 'lib/chain/config.rb', line 76

attrib :generator_access_token

#generator_block_heightInteger (readonly)

Returns:

  • (Integer)


88
# File 'lib/chain/config.rb', line 88

attrib :generator_block_height

#generator_block_height_fetched_atTime (readonly)

Returns:

  • (Time)


92
# File 'lib/chain/config.rb', line 92

attrib :generator_block_height_fetched_at, rfc3339_time: true

#generator_urlString (readonly)

Returns:

  • (String)


72
# File 'lib/chain/config.rb', line 72

attrib :generator_url

#healthHash (readonly)

Returns:

  • (Hash)


134
# File 'lib/chain/config.rb', line 134

attrib :health

#is_configuredBoolean (readonly)

Returns:

  • (Boolean)


56
# File 'lib/chain/config.rb', line 56

attrib :is_configured

#is_generatorBoolean (readonly)

Returns:

  • (Boolean)


68
# File 'lib/chain/config.rb', line 68

attrib :is_generator

#is_productionBoolean (readonly)

Returns:

  • (Boolean)


96
# File 'lib/chain/config.rb', line 96

attrib :is_production

#is_signerBoolean (readonly)

Returns:

  • (Boolean)


64
# File 'lib/chain/config.rb', line 64

attrib :is_signer

#network_rpc_versionInteger (readonly)

Deprecated.

Ignore in 1.2 or greater. Superseded by crosscore_rpc_version.

Returns:

  • (Integer)


106
# File 'lib/chain/config.rb', line 106

attrib :network_rpc_version

#snapshotSnapshot (readonly)

Returns:



138
# File 'lib/chain/config.rb', line 138

attrib(:snapshot) { |raw| Snapshot.new(raw) }

#versionString (readonly)

Returns:

  • (String)


114
# File 'lib/chain/config.rb', line 114

attrib :version