Class: Psych::Merge::PartialTemplateMerger::Result

Inherits:
Object
  • Object
show all
Defined in:
lib/psych/merge/partial_template_merger.rb

Overview

Result of a partial template merge

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(content:, has_key_path:, changed:, stats: {}, message: nil) ⇒ Result

Returns a new instance of Result.



45
46
47
48
49
50
51
# File 'lib/psych/merge/partial_template_merger.rb', line 45

def initialize(content:, has_key_path:, changed:, stats: {}, message: nil)
  @content = content
  @has_key_path = has_key_path
  @changed = changed
  @stats = stats
  @message = message
end

Instance Attribute Details

#changedObject (readonly)

Returns the value of attribute changed.



43
44
45
# File 'lib/psych/merge/partial_template_merger.rb', line 43

def changed
  @changed
end

#contentObject (readonly)

Returns the value of attribute content.



43
44
45
# File 'lib/psych/merge/partial_template_merger.rb', line 43

def content
  @content
end

#has_key_pathObject (readonly)

Returns the value of attribute has_key_path.



43
44
45
# File 'lib/psych/merge/partial_template_merger.rb', line 43

def has_key_path
  @has_key_path
end

#messageObject (readonly)

Returns the value of attribute message.



43
44
45
# File 'lib/psych/merge/partial_template_merger.rb', line 43

def message
  @message
end

#statsObject (readonly)

Returns the value of attribute stats.



43
44
45
# File 'lib/psych/merge/partial_template_merger.rb', line 43

def stats
  @stats
end

Instance Method Details

#key_path_found?Boolean

Returns:

  • (Boolean)


53
54
55
# File 'lib/psych/merge/partial_template_merger.rb', line 53

def key_path_found?
  has_key_path
end