Class: Kernai::Plan::Result
- Inherits:
-
Struct
- Object
- Struct
- Kernai::Plan::Result
- Defined in:
- lib/kernai/plan.rb
Overview
Small value object returned by Plan.validate. ‘plan` is set only on success; `reason` is set only on failure.
Instance Attribute Summary collapse
-
#plan ⇒ Object
Returns the value of attribute plan.
-
#reason ⇒ Object
Returns the value of attribute reason.
Instance Method Summary collapse
Instance Attribute Details
#plan ⇒ Object
Returns the value of attribute plan
29 30 31 |
# File 'lib/kernai/plan.rb', line 29 def plan @plan end |
#reason ⇒ Object
Returns the value of attribute reason
29 30 31 |
# File 'lib/kernai/plan.rb', line 29 def reason @reason end |
Instance Method Details
#ok? ⇒ Boolean
30 31 32 |
# File 'lib/kernai/plan.rb', line 30 def ok? !plan.nil? end |