Class: Dato::Dump::Operation::Root
- Inherits:
-
Object
- Object
- Dato::Dump::Operation::Root
- Defined in:
- lib/dato/dump/operation/root.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #add(operation) ⇒ Object
-
#initialize(path) ⇒ Root
constructor
A new instance of Root.
- #perform ⇒ Object
Constructor Details
#initialize(path) ⇒ Root
Returns a new instance of Root.
9 10 11 12 |
# File 'lib/dato/dump/operation/root.rb', line 9 def initialize(path) @operations = [] @path = path end |
Instance Attribute Details
#path ⇒ Object (readonly)
Returns the value of attribute path.
7 8 9 |
# File 'lib/dato/dump/operation/root.rb', line 7 def path @path end |
Instance Method Details
#add(operation) ⇒ Object
14 15 16 |
# File 'lib/dato/dump/operation/root.rb', line 14 def add(operation) @operations << operation end |
#perform ⇒ Object
18 19 20 |
# File 'lib/dato/dump/operation/root.rb', line 18 def perform operations.each(&:perform) end |