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

Returns the current value of address.

Returns:



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

def address
  @address
end

#evInteger

Returns the current value of ev.

Returns:

  • (Integer)

    the current value of ev



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

def ev
  @ev
end

#heightInteger

Returns the current value of height.

Returns:

  • (Integer)

    the current value of height



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

def height
  @height
end

#importanceFloat

Returns the current value of importance.

Returns:

  • (Float)

    the current value of importance



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

def importance
  @importance
end

#isSetInteger Also known as: is_set

Returns the current value of isSet.

Returns:

  • (Integer)

    the current value of isSet



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

def isSet
  @isSet
end

#scoreInteger

Returns the current value of score.

Returns:

  • (Integer)

    the current value of score



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

Returns:

  • (Boolean)


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

def set?
  @is_set == 1
end