Class: IceMX::MetricsFailures
- Inherits:
-
Object
- Object
- IceMX::MetricsFailures
- Defined in:
- lib/Ice/Metrics.rb
Instance Attribute Summary collapse
-
#failures ⇒ Object
Returns the value of attribute failures.
-
#id ⇒ Object
Returns the value of attribute id.
Instance Method Summary collapse
- #==(other) ⇒ Object
- #eql?(other) ⇒ Boolean
- #hash ⇒ Object
-
#initialize(id = '', failures = nil) ⇒ MetricsFailures
constructor
A new instance of MetricsFailures.
- #inspect ⇒ Object
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
#failures ⇒ Object
Returns the value of attribute failures.
128 129 130 |
# File 'lib/Ice/Metrics.rb', line 128 def failures @failures end |
#id ⇒ Object
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
120 121 122 |
# File 'lib/Ice/Metrics.rb', line 120 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
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 |
#inspect ⇒ Object
124 125 126 |
# File 'lib/Ice/Metrics.rb', line 124 def inspect ::Ice::__stringify(self, T_MetricsFailures) end |