Class: Textus::Application::Maintenance::Plan
- Inherits:
-
Data
- Object
- Data
- Textus::Application::Maintenance::Plan
- Defined in:
- lib/textus/application/maintenance.rb
Overview
A Plan is a JSON-shaped preview. Steps are op-tagged hashes the use case knows how to apply. Warnings are strings surfaced to the operator (skipped keys, ambiguities).
Instance Attribute Summary collapse
-
#steps ⇒ Object
readonly
Returns the value of attribute steps.
-
#warnings ⇒ Object
readonly
Returns the value of attribute warnings.
Instance Method Summary collapse
Instance Attribute Details
#steps ⇒ Object (readonly)
Returns the value of attribute steps
10 11 12 |
# File 'lib/textus/application/maintenance.rb', line 10 def steps @steps end |
#warnings ⇒ Object (readonly)
Returns the value of attribute warnings
10 11 12 |
# File 'lib/textus/application/maintenance.rb', line 10 def warnings @warnings end |
Instance Method Details
#to_h ⇒ Object
11 12 13 |
# File 'lib/textus/application/maintenance.rb', line 11 def to_h { "steps" => steps, "warnings" => warnings } end |