Class: Objectifier::ValueResult

Inherits:
SuccessResult show all
Defined in:
lib/objectifier/result.rb

Instance Attribute Summary collapse

Attributes inherited from SuccessResult

#name

Instance Method Summary collapse

Methods inherited from SuccessResult

#success?

Constructor Details

#initialize(name, value) ⇒ ValueResult

Returns a new instance of ValueResult.



21
22
23
24
# File 'lib/objectifier/result.rb', line 21

def initialize(name, value)
  super(name)
  @value = value
end

Instance Attribute Details

#valueObject (readonly)

Returns the value of attribute value.



19
20
21
# File 'lib/objectifier/result.rb', line 19

def value
  @value
end

Instance Method Details

#value?Boolean

Returns:

  • (Boolean)


26
27
28
# File 'lib/objectifier/result.rb', line 26

def value?
  true
end