Class: Nem::Model::AccountHistorical

Inherits:
Object
  • Object
show all
Includes:
Nem::Mixin::Assignable
Defined in:
lib/nem/model/account_historical.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Methods included from Nem::Mixin::Assignable

#initialize

Instance Attribute Details

#addressObject (readonly)

Returns the value of attribute address.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def address
  @address
end

#balanceObject (readonly)

Returns the value of attribute balance.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def balance
  @balance
end

#heightObject (readonly)

Returns the value of attribute height.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def height
  @height
end

#importanceObject (readonly)

Returns the value of attribute importance.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def importance
  @importance
end

#page_rankObject (readonly)

Returns the value of attribute page_rank.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def page_rank
  @page_rank
end

#unvested_balanceObject (readonly)

Returns the value of attribute unvested_balance.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def unvested_balance
  @unvested_balance
end

#vested_balanceObject (readonly)

Returns the value of attribute vested_balance.



6
7
8
# File 'lib/nem/model/account_historical.rb', line 6

def vested_balance
  @vested_balance
end

Class Method Details

.new_from_account_historical(hash) ⇒ Object



14
15
16
17
18
19
20
21
22
23
24
# File 'lib/nem/model/account_historical.rb', line 14

def self.(hash)
  new(
    page_rank: hash[:pageRank],
    address: hash[:address],
    balance: hash[:balance],
    importance: hash[:importance],
    vested_balance: hash[:vestedBalance],
    unvested_balance: hash[:unvestedBalance],
    height: hash[:height]
  )
end