Class: IceMX::MetricsFailures
- Inherits:
-
Object
- Object
- IceMX::MetricsFailures
- Includes:
- Ice::Inspect_mixin
- Defined in:
- ruby/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.
Methods included from Ice::Inspect_mixin
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
#failures ⇒ Object
Returns the value of attribute failures.
67 68 69 |
# File 'ruby/Ice/Metrics.rb', line 67 def failures @failures end |
#id ⇒ Object
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
63 64 65 |
# File 'ruby/Ice/Metrics.rb', line 63 def eql?(other) return other.class == self.class && other == self end |
#hash ⇒ Object
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 |