Class: Objectifier::ValueResult
- Inherits:
-
SuccessResult
- Object
- SuccessResult
- Objectifier::ValueResult
- Defined in:
- lib/objectifier/result.rb
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Attributes inherited from SuccessResult
Instance Method Summary collapse
-
#initialize(name, value) ⇒ ValueResult
constructor
A new instance of ValueResult.
- #value? ⇒ Boolean
Methods inherited from SuccessResult
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
#value ⇒ Object (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
26 27 28 |
# File 'lib/objectifier/result.rb', line 26 def value? true end |