Class: Textus::Application::Maintenance::Plan

Inherits:
Data
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#stepsObject (readonly)

Returns the value of attribute steps

Returns:

  • (Object)

    the current value of steps



10
11
12
# File 'lib/textus/application/maintenance.rb', line 10

def steps
  @steps
end

#warningsObject (readonly)

Returns the value of attribute warnings

Returns:

  • (Object)

    the current value of warnings



10
11
12
# File 'lib/textus/application/maintenance.rb', line 10

def warnings
  @warnings
end

Instance Method Details

#to_hObject



11
12
13
# File 'lib/textus/application/maintenance.rb', line 11

def to_h
  { "steps" => steps, "warnings" => warnings }
end