Module: Steem

Defined in:
lib/steem.rb,
lib/steem/api.rb,
lib/steem/utils.rb,
lib/steem/stream.rb,
lib/steem/jsonrpc.rb,
lib/steem/marshal.rb,
lib/steem/version.rb,
lib/steem/block_api.rb,
lib/steem/broadcast.rb,
lib/steem/formatter.rb,
lib/steem/operation.rb,
lib/steem/base_error.rb,
lib/steem/transaction.rb,
lib/steem/type/amount.rb,
lib/steem/chain_config.rb,
lib/steem/type/base_type.rb,
lib/steem/mixins/jsonable.rb,
lib/steem/rpc/base_client.rb,
lib/steem/rpc/http_client.rb,
lib/steem/mixins/retriable.rb,
lib/steem/mixins/serializable.rb,
lib/steem/transaction_builder.rb,
lib/steem/rpc/thread_safe_http_client.rb

Defined Under Namespace

Modules: ChainConfig, JSONable, RPC, Retriable, Serializable, Type, Utils Classes: Api, ArgumentError, AuthorNotFoundError, BadOrMissingUpstreamResponseError, BaseError, BlockApi, BlockTooOldError, Broadcast, DeserializationError, DuplicateTransactionError, EmptyTransactionError, Formatter, IncorrectRequestIdError, IncorrectResponseIdError, InvalidAccountError, IrrelevantSignatureError, JsonRpcBatchMaximumSizeExceededError, Jsonrpc, Marshal, MissingActiveAuthorityError, MissingAuthorityError, MissingOtherAuthorityError, MissingOwnerAuthorityError, MissingPostingAuthorityError, NonCanonicalSignatureError, NonZeroRequiredError, NotAppBaseError, Operation, PluginNotEnabledError, ReachedMaximumTimeError, RemoteDatabaseLockError, RemoteNodeError, SerializationMismatchError, Stream, TheftError, TooManyRetriesError, TooManyTimeoutsError, Transaction, TransactionBuilder, TransactionExpiredError, TransactionIndexDisabledError, TypeError, UnexpectedAssetError, UnknownApiError, UnknownError, UnknownMethodError, UnknownOperationError, UnsupportedChainError, UpstreamResponseError, VirtualOperationsNotAllowedError

Constant Summary collapse

VERSION =
'0.9.8'
AGENT_ID =
"steem-ruby/#{VERSION}"

Class Method Summary collapse

Class Method Details

.api_classesObject



73
74
75
# File 'lib/steem.rb', line 73

def self.api_classes
  @api_classes ||= {}
end

.const_missing(api_name) ⇒ Object



77
78
79
80
81
82
# File 'lib/steem.rb', line 77

def self.const_missing(api_name)
  api = api_classes[api_name]
  api ||= Api.clone(freeze: false) rescue Api.clone
  api.api_name = api_name
  api_classes[api_name] = api
end