Class: Caster::Operation
- Inherits:
-
Object
- Object
- Caster::Operation
- Defined in:
- lib/caster/operation.rb
Overview
a migration operation applies a transformation over a document and saves it to a database
Instance Method Summary collapse
- #db_handle ⇒ Object
-
#initialize(db_handle, transformation) ⇒ Operation
constructor
A new instance of Operation.
- #transformation ⇒ Object
Constructor Details
#initialize(db_handle, transformation) ⇒ Operation
Returns a new instance of Operation.
6 7 8 9 |
# File 'lib/caster/operation.rb', line 6 def initialize db_handle, transformation @db_handle = db_handle @transformation = transformation end |
Instance Method Details
#db_handle ⇒ Object
11 12 13 |
# File 'lib/caster/operation.rb', line 11 def db_handle @db_handle end |
#transformation ⇒ Object
15 16 17 |
# File 'lib/caster/operation.rb', line 15 def transformation @transformation end |