Class: Tobias::Evaluations::Result

Inherits:
Struct
  • Object
show all
Defined in:
lib/tobias/evaluations/base.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#nameObject

Returns the value of attribute name

Returns:

  • (Object)

    the current value of name



17
18
19
# File 'lib/tobias/evaluations/base.rb', line 17

def name
  @name
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



17
18
19
# File 'lib/tobias/evaluations/base.rb', line 17

def value
  @value
end

Instance Method Details

#<=>(other) ⇒ Object



18
19
20
# File 'lib/tobias/evaluations/base.rb', line 18

def <=>(other)
  value <=> other.value
end