Class: AbideDevUtils::XCCDF::Diff::NumberTitleContainerStandIn

Inherits:
Object
  • Object
show all
Defined in:
lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb

Overview

Stand-in object for a NumberTitleContainer when the NumberTitleContainer would not exist. This is used when a change is an add or remove.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(change_type) ⇒ NumberTitleContainerStandIn

Returns a new instance of NumberTitleContainerStandIn.



261
262
263
264
265
266
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 261

def initialize(change_type)
  @change_type = change_type
  @child = nil
  @number = ''
  @title = ''
end

Instance Attribute Details

#childObject (readonly)

Returns the value of attribute child.



259
260
261
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 259

def child
  @child
end

#numberObject (readonly)

Returns the value of attribute number.



259
260
261
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 259

def number
  @number
end

#titleObject (readonly)

Returns the value of attribute title.



259
260
261
# File 'lib/abide_dev_utils/xccdf/diff/benchmark/number_title.rb', line 259

def title
  @title
end