Class: IceMX::MetricsFailures

Inherits:
Object
  • Object
show all
Defined in:
lib/Ice/Metrics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of MetricsFailures.



101
102
103
104
# File 'lib/Ice/Metrics.rb', line 101

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

Instance Attribute Details

#failuresObject

Returns the value of attribute failures.



128
129
130
# File 'lib/Ice/Metrics.rb', line 128

def failures
  @failures
end

#idObject

Returns the value of attribute id.



128
129
130
# File 'lib/Ice/Metrics.rb', line 128

def id
  @id
end

Instance Method Details

#==(other) ⇒ Object



113
114
115
116
117
118
# File 'lib/Ice/Metrics.rb', line 113

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)


120
121
122
# File 'lib/Ice/Metrics.rb', line 120

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

#hashObject



106
107
108
109
110
111
# File 'lib/Ice/Metrics.rb', line 106

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

#inspectObject



124
125
126
# File 'lib/Ice/Metrics.rb', line 124

def inspect
    ::Ice::__stringify(self, T_MetricsFailures)
end