Class: Raiblocks::Accounts
- Inherits:
-
Object
- Object
- Raiblocks::Accounts
- Includes:
- AccountsProxyHelper, Proxy
- Defined in:
- lib/raiblocks/proxies/accounts.rb
Instance Attribute Summary collapse
-
#addresses ⇒ Object
Returns the value of attribute addresses.
Attributes included from Proxy
Instance Method Summary collapse
-
#initialize(addresses = nil, client = nil) ⇒ Accounts
constructor
A new instance of Accounts.
Methods included from AccountsProxyHelper
#<<, #[], #balances, #create, #each, #first, #frontiers, #pending, #second, #third
Methods included from Proxy
included, #methods, #proxy_methods
Constructor Details
#initialize(addresses = nil, client = nil) ⇒ Accounts
Returns a new instance of Accounts.
8 9 10 11 12 13 14 15 16 |
# File 'lib/raiblocks/proxies/accounts.rb', line 8 def initialize(addresses = nil, client = nil) unless addresses.is_a?(Array) raise Raiblocks::MissingParameters, 'Missing argument: addresses (str[])' end @addresses = addresses @client = 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
#addresses ⇒ Object
Returns the value of attribute addresses.
6 7 8 |
# File 'lib/raiblocks/proxies/accounts.rb', line 6 def addresses @addresses end |