Class: Oplogjam::Operators::Assignment

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

Direct Known Subclasses

FieldAssignment, IndexAssignment

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(path, value) ⇒ Assignment

Returns a new instance of Assignment.



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

def initialize(path, value)
  @path = path
  @value = value
end

Instance Attribute Details

#pathObject (readonly)

Returns the value of attribute path.



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

def path
  @path
end

#valueObject (readonly)

Returns the value of attribute value.



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

def value
  @value
end