Class: IceMX::MetricsFailures

Inherits:
Object
  • Object
show all
Includes:
Ice::Inspect_mixin
Defined in:
ruby/Ice/Metrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Ice::Inspect_mixin

#inspect

Constructor Details

#initialize(id = '', failures = nil) ⇒ MetricsFailures

Returns a new instance of MetricsFailures.



44
45
46
47
# File 'ruby/Ice/Metrics.rb', line 44

def initialize(id='', failures=nil)
    @id = id
    @failures = failures
end

Instance Attribute Details

#failuresObject

Returns the value of attribute failures.



67
68
69
# File 'ruby/Ice/Metrics.rb', line 67

def failures
  @failures
end

#idObject

Returns the value of attribute id.



67
68
69
# File 'ruby/Ice/Metrics.rb', line 67

def id
  @id
end

Instance Method Details

#==(other) ⇒ Object



56
57
58
59
60
61
# File 'ruby/Ice/Metrics.rb', line 56

def ==(other)
    return false if !other.is_a? ::IceMX::MetricsFailures or
        @id != other.id or
        @failures != other.failures
    true
end

#eql?(other) ⇒ Boolean

Returns:

  • (Boolean)


63
64
65
# File 'ruby/Ice/Metrics.rb', line 63

def eql?(other)
    return other.class == self.class && other == self
end

#hashObject



49
50
51
52
53
54
# File 'ruby/Ice/Metrics.rb', line 49

def hash
    _h = 0
    _h = 5 * _h + @id.hash
    _h = 5 * _h + @failures.hash
    _h % 0x7fffffff
end