Class: Nis::Struct::AccountImportanceViewModel

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Util::Assignable

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

Instance Attribute Details

#addressNis::Unit::Address


9
10
11
# File 'lib/nis/struct/account_importance_view_model.rb', line 9

def address
  @address
end

#evInteger


9
10
11
# File 'lib/nis/struct/account_importance_view_model.rb', line 9

def ev
  @ev
end

#heightInteger


9
10
11
# File 'lib/nis/struct/account_importance_view_model.rb', line 9

def height
  @height
end

#importanceFloat


9
10
11
# File 'lib/nis/struct/account_importance_view_model.rb', line 9

def importance
  @importance
end

#isSetInteger Also known as: is_set


9
10
11
# File 'lib/nis/struct/account_importance_view_model.rb', line 9

def isSet
  @isSet
end

#scoreInteger


9
10
11
# File 'lib/nis/struct/account_importance_view_model.rb', line 9

def score
  @score
end

Class Method Details

.build(attrs) ⇒ Object


16
17
18
19
# File 'lib/nis/struct/account_importance_view_model.rb', line 16

def self.build(attrs)
  attrs[:address] = Nis::Unit::Address.new(attrs[:address])
  new(attrs)
end

Instance Method Details

#set?Boolean


22
23
24
# File 'lib/nis/struct/account_importance_view_model.rb', line 22

def set?
  @is_set == 1
end