Class: DeployCouch::Delta

Inherits:
Object
  • Object
show all
Defined in:
lib/deploy_couch/delta.rb

Instance Method Summary collapse

Constructor Details

#initialize(id, file_name, type, map_function, rollback_function) ⇒ Delta

Returns a new instance of Delta.



4
5
6
7
8
9
10
# File 'lib/deploy_couch/delta.rb', line 4

def initialize(id,file_name,type,map_function,rollback_function)
  @id=id
  @file_name = file_name
  @type = type
  @map_function = map_function
  @rollback_function = rollback_function
end

Instance Method Details

#file_nameObject



17
18
19
# File 'lib/deploy_couch/delta.rb', line 17

def file_name
  @file_name
end

#idObject



12
13
14
# File 'lib/deploy_couch/delta.rb', line 12

def id
  @id
end

#map_functionObject



25
26
27
# File 'lib/deploy_couch/delta.rb', line 25

def map_function
  @map_function
end

#rollback_functionObject



29
30
31
# File 'lib/deploy_couch/delta.rb', line 29

def rollback_function
  @rollback_function
end

#typeObject



21
22
23
# File 'lib/deploy_couch/delta.rb', line 21

def type
  @type
end