Module: Beowulf

Extended by:
Beowulf
Included in:
Beowulf
Defined in:
lib/beowulf.rb,
lib/beowulf/api.rb,
lib/beowulf/utils.rb,
lib/beowulf/logger.rb,
lib/beowulf/wallet.rb,
lib/beowulf/version.rb,
lib/beowulf/block_api.rb,
lib/beowulf/operation.rb,
lib/beowulf/type/hash.rb,
lib/beowulf/base_error.rb,
lib/beowulf/base_error.rb,
lib/beowulf/base_error.rb,
lib/beowulf/base_error.rb,
lib/beowulf/base_error.rb,
lib/beowulf/base_error.rb,
lib/beowulf/base_error.rb,
lib/beowulf/type/array.rb,
lib/beowulf/transaction.rb,
lib/beowulf/type/amount.rb,
lib/beowulf/type/future.rb,
lib/beowulf/chain_config.rb,
lib/beowulf/database_api.rb,
lib/beowulf/error_parser.rb,
lib/beowulf/type/u_int16.rb,
lib/beowulf/type/u_int32.rb,
lib/beowulf/condenser_api.rb,
lib/beowulf/operation_ids.rb,
lib/beowulf/type/authority.rb,
lib/beowulf/type/extension.rb,
lib/beowulf/operation_types.rb,
lib/beowulf/type/permission.rb,
lib/beowulf/type/public_key.rb,
lib/beowulf/type/serializer.rb,
lib/beowulf/type/extension_ids.rb,
lib/beowulf/type/point_in_time.rb,
lib/beowulf/account_history_api.rb,
lib/beowulf/type/extension_json.rb,
lib/beowulf/type/extension_types.rb,
lib/beowulf/network_broadcast_api.rb,
lib/beowulf/type/authority_update.rb

Defined Under Namespace

Modules: ChainConfig, ExtensionIds, ExtensionTypes, OperationIds, OperationTypes, Type, Utils Classes: AccountHistoryApi, Api, ApiError, BaseError, BlockApi, CondenserApi, DatabaseApi, ErrorParser, ExtensionError, NetworkBroadcastApi, Operation, OperationError, Transaction, TransactionError, TypeError, Wallet, WalletError

Constant Summary collapse

VERSION =
'0.0.3'
AGENT_ID =
"beowulf/#{VERSION}"

Class Method Summary collapse

Class Method Details

.loggerLogger

The logger that Beowulf uses for reporting errors.

Returns:

  • (Logger)


7
8
9
10
11
# File 'lib/beowulf/logger.rb', line 7

def self.logger
  @@logger ||= Logger.new(STDOUT).tap do |logger|
    logger.progname = 'beowulf'
  end
end

.logger=(logger) ⇒ void

This method returns an undefined value.

Sets the logger that Beowulf uses for reporting errors.

Parameters:

  • logger (Logger)

    The logger to set as Beowulf’s logger.



17
18
19
# File 'lib/beowulf/logger.rb', line 17

def self.logger=(logger)
  @@logger = logger
end