Class: Oplogjam::Operators::UnsetField

Inherits:
Object
  • Object
show all
Defined in:
lib/oplogjam/operators/unset_field.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path) ⇒ UnsetField

Returns a new instance of UnsetField.



6
7
8
# File 'lib/oplogjam/operators/unset_field.rb', line 6

def initialize(path)
  @path = path
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



4
5
6
# File 'lib/oplogjam/operators/unset_field.rb', line 4

def path
  @path
end

Instance Method Details

#delete(column) ⇒ Object



10
11
12
# File 'lib/oplogjam/operators/unset_field.rb', line 10

def delete(column)
  column.delete_path(path)
end