Class: Nem::Model::Importance
- Inherits:
-
Object
- Object
- Nem::Model::Importance
- Includes:
- Nem::Mixin::Assignable
- Defined in:
- lib/nem/model/importance.rb
Instance Attribute Summary collapse
-
#address ⇒ Object
Returns the value of attribute address.
-
#ev ⇒ Object
Returns the value of attribute ev.
-
#height ⇒ Object
Returns the value of attribute height.
-
#is_set ⇒ Object
Returns the value of attribute is_set.
-
#score ⇒ Object
Returns the value of attribute score.
Class Method Summary collapse
Instance Method Summary collapse
Methods included from Nem::Mixin::Assignable
Instance Attribute Details
#address ⇒ Object
Returns the value of attribute address.
6 7 8 |
# File 'lib/nem/model/importance.rb', line 6 def address @address end |
#ev ⇒ Object
Returns the value of attribute ev.
6 7 8 |
# File 'lib/nem/model/importance.rb', line 6 def ev @ev end |
#height ⇒ Object
Returns the value of attribute height.
6 7 8 |
# File 'lib/nem/model/importance.rb', line 6 def height @height end |
#is_set ⇒ Object
Returns the value of attribute is_set.
6 7 8 |
# File 'lib/nem/model/importance.rb', line 6 def is_set @is_set end |
#score ⇒ Object
Returns the value of attribute score.
6 7 8 |
# File 'lib/nem/model/importance.rb', line 6 def score @score end |
Class Method Details
.new_from_account_importance_view_model(hash) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/nem/model/importance.rb', line 12 def self.new_from_account_importance_view_model(hash) importance = hash[:importance] new( address: hash[:address], score: importance[:score], ev: importance[:ev], is_set: importance[:isSet], height: importance[:height] ) end |
Instance Method Details
#set? ⇒ Boolean
24 25 26 |
# File 'lib/nem/model/importance.rb', line 24 def set? @is_set == 1 end |