Class: ROXMLDiff

Inherits:
Object
  • Object
show all
Defined in:
lib/roundtrip_xml/extractor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(operation, key, obj_val, template_val, matcher = nil) ⇒ ROXMLDiff

Returns a new instance of ROXMLDiff.



202
203
204
205
206
207
208
# File 'lib/roundtrip_xml/extractor.rb', line 202

def initialize(operation, key, obj_val, template_val, matcher = nil)
  @operation = operation
  @key = key.to_sym
  @obj_val = obj_val
  @template_val = template_val
  @matcher = matcher
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



201
202
203
# File 'lib/roundtrip_xml/extractor.rb', line 201

def key
  @key
end

#matcherObject (readonly)

Returns the value of attribute matcher.



201
202
203
# File 'lib/roundtrip_xml/extractor.rb', line 201

def matcher
  @matcher
end

#obj_valObject (readonly)

Returns the value of attribute obj_val.



201
202
203
# File 'lib/roundtrip_xml/extractor.rb', line 201

def obj_val
  @obj_val
end

#operationObject (readonly)

Returns the value of attribute operation.



201
202
203
# File 'lib/roundtrip_xml/extractor.rb', line 201

def operation
  @operation
end

#template_valObject (readonly)

Returns the value of attribute template_val.



201
202
203
# File 'lib/roundtrip_xml/extractor.rb', line 201

def template_val
  @template_val
end