Class: Caster::Operation

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

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_handleObject



11
12
13
# File 'lib/caster/operation.rb', line 11

def db_handle
  @db_handle
end

#transformationObject



15
16
17
# File 'lib/caster/operation.rb', line 15

def transformation
  @transformation
end