Class: FlowClient::Account
- Inherits:
-
Object
- Object
- FlowClient::Account
- Defined in:
- lib/flow_client/account.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#balance ⇒ Object
Returns the value of attribute balance.
-
#contracts ⇒ Object
Returns the value of attribute contracts.
-
#keys ⇒ Object
Returns the value of attribute keys.
Instance Method Summary collapse
-
#initialize(address: nil, balance: nil, keys: [], contracts: {}) ⇒ Account
constructor
A new instance of Account.
Constructor Details
#initialize(address: nil, balance: nil, keys: [], contracts: {}) ⇒ Account
Returns a new instance of Account.
23 24 25 26 27 28 29 |
# File 'lib/flow_client/account.rb', line 23 def initialize(address: nil, balance: nil, keys: [], contracts: {}) @keys = keys @address = address @balance = balance @contracts = contracts @contracts = {} end |
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
21 22 23 |
# File 'lib/flow_client/account.rb', line 21 def address @address end |
#balance ⇒ Object
Returns the value of attribute balance.
21 22 23 |
# File 'lib/flow_client/account.rb', line 21 def balance @balance end |
#contracts ⇒ Object
Returns the value of attribute contracts.
21 22 23 |
# File 'lib/flow_client/account.rb', line 21 def contracts @contracts end |
#keys ⇒ Object
Returns the value of attribute keys.
21 22 23 |
# File 'lib/flow_client/account.rb', line 21 def keys @keys end |