Module: Radiator

Extended by:
Radiator
Included in:
Radiator
Defined in:
lib/radiator.rb,
lib/radiator/api.rb,
lib/radiator/chain.rb,
lib/radiator/utils.rb,
lib/radiator/logger.rb,
lib/radiator/stream.rb,
lib/radiator/tag_api.rb,
lib/radiator/version.rb,
lib/radiator/block_api.rb,
lib/radiator/operation.rb,
lib/radiator/base_error.rb,
lib/radiator/base_error.rb,
lib/radiator/base_error.rb,
lib/radiator/base_error.rb,
lib/radiator/base_error.rb,
lib/radiator/base_error.rb,
lib/radiator/base_error.rb,
lib/radiator/follow_api.rb,
lib/radiator/type/price.rb,
lib/radiator/transaction.rb,
lib/radiator/type/amount.rb,
lib/radiator/type/future.rb,
lib/radiator/chain_config.rb,
lib/radiator/database_api.rb,
lib/radiator/error_parser.rb,
lib/radiator/type/u_int16.rb,
lib/radiator/type/u_int32.rb,
lib/radiator/condenser_api.rb,
lib/radiator/operation_ids.rb,
lib/radiator/chain_stats_api.rb,
lib/radiator/operation_types.rb,
lib/radiator/type/permission.rb,
lib/radiator/type/public_key.rb,
lib/radiator/type/serializer.rb,
lib/radiator/account_by_key_api.rb,
lib/radiator/market_history_api.rb,
lib/radiator/type/beneficiaries.rb,
lib/radiator/type/point_in_time.rb,
lib/radiator/network_broadcast_api.rb

Defined Under Namespace

Modules: ChainConfig, OperationIds, OperationTypes, Type, Utils Classes: AccountByKeyApi, Api, ApiError, BaseError, BlockApi, Chain, ChainError, ChainStatsApi, CondenserApi, DatabaseApi, ErrorParser, FollowApi, MarketHistoryApi, NetworkBroadcastApi, Operation, OperationError, Stream, StreamError, TagApi, Transaction, TransactionError, TypeError

Constant Summary collapse

VERSION =
'0.3.10'
AGENT_ID =
"radiator/#{VERSION}"

Class Method Summary collapse

Class Method Details

.loggerLogger

The logger that Radiator uses for reporting errors.

Returns:

  • (Logger)


7
8
9
# File 'lib/radiator/logger.rb', line 7

def self.logger
  @logger ||= Logger.new(STDOUT)
end

.logger=(logger) ⇒ void

This method returns an undefined value.

Sets the logger that Radiator uses for reporting errors.

Parameters:

  • logger (Logger)

    The logger to set as Radiator's logger.



15
16
17
# File 'lib/radiator/logger.rb', line 15

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