Class: Oplogjam::Operators::UnsetField
- Inherits:
-
Object
- Object
- Oplogjam::Operators::UnsetField
- Defined in:
- lib/oplogjam/operators/unset_field.rb
Instance Attribute Summary collapse
-
#path ⇒ Object
readonly
Returns the value of attribute path.
Instance Method Summary collapse
- #delete(column) ⇒ Object
-
#initialize(path) ⇒ UnsetField
constructor
A new instance of UnsetField.
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
#path ⇒ Object (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 |