Class: Nis::Struct::AccountInfo
- Inherits:
-
Object
- Object
- Nis::Struct::AccountInfo
- Includes:
- Util::Assignable
- Defined in:
- lib/nis/struct/account_info.rb
Overview
Instance Attribute Summary collapse
-
#address ⇒ Nis::Unit::Address
The current value of address.
-
#balance ⇒ Nis::Unit::Balance
The current value of balance.
-
#harvestedBlocks ⇒ Array
(also: #harvested_blocks)
The current value of harvestedBlocks.
-
#importance ⇒ Float
The current value of importance.
-
#label ⇒ String
The current value of label.
-
#publicKey ⇒ String
(also: #public_key)
The current value of publicKey.
-
#vestedBalance ⇒ Nis::Unit::Balance
(also: #vested_balance)
The current value of vestedBalance.
Class Method Summary collapse
Methods included from Util::Assignable
#[], #initialize, #to_hash, #to_json
Instance Attribute Details
#address ⇒ Nis::Unit::Address
Returns the current value of address.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def address @address end |
#balance ⇒ Nis::Unit::Balance
Returns the current value of balance.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def balance @balance end |
#harvestedBlocks ⇒ Array Also known as: harvested_blocks
Returns the current value of harvestedBlocks.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def harvestedBlocks @harvestedBlocks end |
#importance ⇒ Float
Returns the current value of importance.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def importance @importance end |
#label ⇒ String
Returns the current value of label.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def label @label end |
#publicKey ⇒ String Also known as: public_key
Returns the current value of publicKey.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def publicKey @publicKey end |
#vestedBalance ⇒ Nis::Unit::Balance Also known as: vested_balance
Returns the current value of vestedBalance.
10 11 12 |
# File 'lib/nis/struct/account_info.rb', line 10 def vestedBalance @vestedBalance end |
Class Method Details
.build(attrs) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/nis/struct/account_info.rb', line 21 def self.build(attrs) attrs[:address] = Nis::Unit::Address.new(attrs[:address]) attrs[:balance] = Nis::Unit::Balance.new(attrs[:balance]) attrs[:vestedBalance] = Nis::Unit::Balance.new(attrs[:vestedBalance]) new(attrs) end |