Class: Nis::Struct::AccountInfo

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/account_info.rb

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Util::Assignable

#[], #initialize, #to_hash, #to_json

Instance Attribute Details

#addressNis::Unit::Address

Returns the current value of address.

Returns:



10
11
12
# File 'lib/nis/struct/account_info.rb', line 10

def address
  @address
end

#balanceNis::Unit::Balance

Returns the current value of balance.

Returns:



10
11
12
# File 'lib/nis/struct/account_info.rb', line 10

def balance
  @balance
end

#harvestedBlocksArray Also known as: harvested_blocks

Returns the current value of harvestedBlocks.

Returns:

  • (Array)

    the current value of harvestedBlocks



10
11
12
# File 'lib/nis/struct/account_info.rb', line 10

def harvestedBlocks
  @harvestedBlocks
end

#importanceFloat

Returns the current value of importance.

Returns:

  • (Float)

    the current value of importance



10
11
12
# File 'lib/nis/struct/account_info.rb', line 10

def importance
  @importance
end

#labelString

Returns the current value of label.

Returns:

  • (String)

    the current value of label



10
11
12
# File 'lib/nis/struct/account_info.rb', line 10

def label
  @label
end

#publicKeyString Also known as: public_key

Returns the current value of publicKey.

Returns:

  • (String)

    the current value of publicKey



10
11
12
# File 'lib/nis/struct/account_info.rb', line 10

def publicKey
  @publicKey
end

#vestedBalanceNis::Unit::Balance Also known as: vested_balance

Returns the current value of vestedBalance.

Returns:



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