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


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

def address
  @address
end

#balanceNis::Unit::Balance


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

def balance
  @balance
end

#harvestedBlocksArray Also known as: harvested_blocks


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

def harvestedBlocks
  @harvestedBlocks
end

#importanceFloat


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

def importance
  @importance
end

#labelString


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

def label
  @label
end

#publicKeyString Also known as: public_key


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

def publicKey
  @publicKey
end

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


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