Class: DogecoinClient
- Inherits:
-
Object
- Object
- DogecoinClient
- Defined in:
- lib/dogecoin_client.rb,
lib/errors/rpc_error.rb,
lib/errors/http_error.rb,
lib/dogecoin_client/client.rb,
lib/dogecoin_client/methods.rb,
lib/dogecoin_client/version.rb,
lib/errors/invalid_method_error.rb
Defined Under Namespace
Classes: Client, Configuration, HTTPError, InvalidMethodError, RPCError
Constant Summary collapse
- METHODS =
%w( add_multi_sig_address backup_wallet create_raw_transaction decode_raw_transaction dump_priv_key encrypt_wallet get_account get_account_address get_addresses_by_account get_balance get_block get_block_count get_block_hash get_connection_count get_difficulty get_generate get_hashes_per_sec get_info get_memory_pool get_mining_info get_new_address get_raw_transaction get_received_by_account get_received_by_address get_transaction get_work help import_priv_key key_pool_refill list_accounts list_received_by_account list_received_by_address list_since_block list_transactions list_unspent move send_from send_many send_raw_transaction send_to_address set_account set_generate set_tx_fee sign_message sign_raw_transaction stop validate_address verify_message wallet_lock wallet_passphrase wallet_passphrase_change )
- VERSION =
"0.5.0"
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ DogecoinClient
constructor
A new instance of DogecoinClient.
-
#method_missing(name, *args) ⇒ Object
Delegate everything to the ‘real’ Client.
Constructor Details
#initialize(options = {}) ⇒ DogecoinClient
Returns a new instance of DogecoinClient.
6 7 8 |
# File 'lib/dogecoin_client.rb', line 6 def initialize( = {}) @client = DogecoinClient::Client.new() end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(name, *args) ⇒ Object
Delegate everything to the ‘real’ Client
11 12 13 |
# File 'lib/dogecoin_client.rb', line 11 def method_missing(name, *args) @client.send(name, *args) end |
Class Method Details
.configuration ⇒ Object
15 16 17 |
# File 'lib/dogecoin_client.rb', line 15 def self.configuration @configuration ||= Configuration.new end |
.configure {|configuration| ... } ⇒ Object
19 20 21 |
# File 'lib/dogecoin_client.rb', line 19 def self.configure yield(configuration) if block_given? end |