Class: Raiblocks::Account
- Inherits:
-
Object
- Object
- Raiblocks::Account
- Includes:
- AccountProxyHelper, Proxy
- Defined in:
- lib/raiblocks/proxies/account.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
Attributes included from Proxy
Instance Method Summary collapse
-
#initialize(address = nil, opts = {}) ⇒ Account
constructor
A new instance of Account.
Methods included from AccountProxyHelper
#balance, #block_count, #create, #history, #info, #key, #list, #move, #pending_balance, #pending_blocks, #remove, #representative, #representative_set, #wallet_work, #wallet_work_set, #weight
Methods included from Proxy
included, #methods, #proxy_methods
Constructor Details
#initialize(address = nil, opts = {}) ⇒ Account
Returns a new instance of Account.
8 9 10 11 12 13 14 15 16 |
# File 'lib/raiblocks/proxies/account.rb', line 8 def initialize(address = nil, opts = {}) unless address.is_a?(String) raise Raiblocks::MissingParameters, 'Missing argument: address (str)' end @address = address @client = opts[:client] || Raiblocks.client end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class Raiblocks::Proxy
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/raiblocks/proxies/account.rb', line 6 def address @address end |