Module: Rubybear

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

Defined Under Namespace

Modules: ChainConfig, Mixins, OperationIds, OperationTypes, Type, Utils Classes: AccountByKeyApi, AccountHistoryApi, 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.0.2'
AGENT_ID =
"rubybear/#{VERSION}"

Class Method Summary collapse

Class Method Details

.loggerLogger

The logger that Rubybear uses for reporting errors.

Returns:

  • (Logger)


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

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

.logger=(logger) ⇒ void

This method returns an undefined value.

Sets the logger that Rubybear uses for reporting errors.

Parameters:

  • logger (Logger)

    The logger to set as Rubybear’s logger.



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

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