Class: Nem::Model::AccountHistorical
- Inherits:
-
Object
- Object
- Nem::Model::AccountHistorical
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/account_historical.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
readonly
Returns the value of attribute address.
-
#balance ⇒ Object
readonly
Returns the value of attribute balance.
-
#height ⇒ Object
readonly
Returns the value of attribute height.
-
#importance ⇒ Object
readonly
Returns the value of attribute importance.
-
#page_rank ⇒ Object
readonly
Returns the value of attribute page_rank.
-
#unvested_balance ⇒ Object
readonly
Returns the value of attribute unvested_balance.
-
#vested_balance ⇒ Object
readonly
Returns the value of attribute vested_balance.
Class Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#address ⇒ Object (readonly)
Returns the value of attribute address.
6 7 8 |
# File 'lib/nem/model/account_historical.rb', line 6 def address @address end |
#balance ⇒ Object (readonly)
Returns the value of attribute balance.
6 7 8 |
# File 'lib/nem/model/account_historical.rb', line 6 def balance @balance end |
#height ⇒ Object (readonly)
Returns the value of attribute height.
6 7 8 |
# File 'lib/nem/model/account_historical.rb', line 6 def height @height end |
#importance ⇒ Object (readonly)
Returns the value of attribute importance.
6 7 8 |
# File 'lib/nem/model/account_historical.rb', line 6 def importance @importance end |
#page_rank ⇒ Object (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_balance ⇒ Object (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_balance ⇒ Object (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.new_from_account_historical(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 |