class ChaosDetector::Stacker::CompInfo

Attributes

info[RW]
name[RW]
path[RW]

Public Class Methods

new(name:, path: nil, info: nil) click to toggle source
# File lib/chaos_detector/stacker/comp_info.rb, line 12
def initialize(name:, path: nil, info: nil)
  @name = name
  @path = path
  @info = info
end

Public Instance Methods

==(other) click to toggle source
# File lib/chaos_detector/stacker/comp_info.rb, line 18
def ==(other)
  other &&
    name == other.name &&
    path == other.path &&
    info == other.info
end
component_type() click to toggle source
# File lib/chaos_detector/stacker/comp_info.rb, line 37
def component_type
  raise NotImplementedError, 'Deriving class should implement #component_type'
end
eql?(other) click to toggle source
# File lib/chaos_detector/stacker/comp_info.rb, line 25
def eql?(other)
  self == other
end
hash() click to toggle source
# File lib/chaos_detector/stacker/comp_info.rb, line 29
def hash
  [path, name, info].hash
end
to_s() click to toggle source
# File lib/chaos_detector/stacker/comp_info.rb, line 33
def to_s
  "#{name}: #{path} - #{info}"
end