Class: Nis::Struct::BlockScore

Inherits:
Object
  • Object
show all
Includes:
Util::Assignable
Defined in:
lib/nis/struct/block_score.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

#scoreString

Returns the current value of score

Returns:

  • (String)

    the current value of score


4
5
6
# File 'lib/nis/struct/block_score.rb', line 4

def score
  @score
end

Class Method Details

.build(attrs) ⇒ Object


8
9
10
# File 'lib/nis/struct/block_score.rb', line 8

def self.build(attrs)
  new(attrs)
end

Instance Method Details

#to_sString

Returns:

  • (String)

13
14
15
# File 'lib/nis/struct/block_score.rb', line 13

def to_s
  @score
end