Module: Neb
- Extended by:
- Neb
- Included in:
- Neb
- Defined in:
- lib/neb.rb,
lib/neb/key.rb,
lib/neb/utils.rb,
lib/neb/client.rb,
lib/neb/account.rb,
lib/neb/address.rb,
lib/neb/version.rb,
lib/neb/constant.rb,
lib/neb/secp256k1.rb,
lib/neb/client/api.rb,
lib/neb/exceptions.rb,
lib/neb/public_key.rb,
lib/neb/private_key.rb,
lib/neb/transaction.rb,
lib/neb/base_convert.rb,
lib/neb/client/admin.rb,
lib/neb/configuration.rb,
lib/neb/client/request.rb,
lib/neb/client/response.rb
Defined Under Namespace
Modules: BaseConvert, Constant, Secp256k1, Utils Classes: Account, Address, AssertError, BlockGasLimitReached, ChecksumError, Client, Configuration, ContractCreationFailed, DeprecatedError, FormatError, InsufficientBalance, InsufficientStartGas, InvalidBlock, InvalidJSONKeyError, InvalidNonce, InvalidSPVProof, InvalidTransaction, InvalidUncles, Key, PrivateKey, PublicKey, Transaction, TransactionFailed, UnknownParentError, UnsignError, UnsignedTransactionError, ValidationError, ValueError
Constant Summary collapse
- CONFIG =
Configuration.new
- VERSION =
"0.1.3".freeze
Instance Attribute Summary collapse
-
#configured ⇒ Object
(also: #configured?)
readonly
Returns the value of attribute configured.
-
#logger ⇒ Object
readonly
Returns the value of attribute logger.
Instance Method Summary collapse
Instance Attribute Details
#configured ⇒ Object (readonly) Also known as: configured?
Returns the value of attribute configured.
42 43 44 |
# File 'lib/neb.rb', line 42 def configured @configured end |
#logger ⇒ Object (readonly)
Returns the value of attribute logger.
42 43 44 |
# File 'lib/neb.rb', line 42 def logger @logger end |
Instance Method Details
#clear! ⇒ Object
51 52 53 54 55 |
# File 'lib/neb.rb', line 51 def clear! CONFIG.clear @logger = nil @configured = false end |
#configure(config = {}) ⇒ Object
45 46 47 48 49 |
# File 'lib/neb.rb', line 45 def configure(config = {}) CONFIG.merge!(config) setup_general_logger! @configured = true end |
#root ⇒ Object
57 58 59 |
# File 'lib/neb.rb', line 57 def root Pathname.new(File.('../..', __FILE__)) end |