Class: IceMX::TopicMetrics
- Inherits:
-
Metrics
- Object
- Ice::Value
- Metrics
- IceMX::TopicMetrics
- Defined in:
- lib/IceStorm/Metrics.rb
Instance Attribute Summary collapse
-
#forwarded ⇒ Object
Returns the value of attribute forwarded.
-
#published ⇒ Object
Returns the value of attribute published.
Attributes inherited from Metrics
#current, #failures, #id, #total, #totalLifetime
Attributes inherited from Ice::Value
Instance Method Summary collapse
-
#initialize(id = '', total = 0, current = 0, totalLifetime = 0, failures = 0, published = 0, forwarded = 0) ⇒ TopicMetrics
constructor
A new instance of TopicMetrics.
Methods inherited from Ice::Value
#ice_getSlicedData, #ice_id, ice_staticId, #inspect
Constructor Details
#initialize(id = '', total = 0, current = 0, totalLifetime = 0, failures = 0, published = 0, forwarded = 0) ⇒ TopicMetrics
Returns a new instance of TopicMetrics.
28 29 30 31 32 |
# File 'lib/IceStorm/Metrics.rb', line 28 def initialize(id='', total=0, current=0, totalLifetime=0, failures=0, published=0, forwarded=0) super(id, total, current, totalLifetime, failures) @published = published @forwarded = forwarded end |
Instance Attribute Details
#forwarded ⇒ Object
Returns the value of attribute forwarded.
34 35 36 |
# File 'lib/IceStorm/Metrics.rb', line 34 def forwarded @forwarded end |
#published ⇒ Object
Returns the value of attribute published.
34 35 36 |
# File 'lib/IceStorm/Metrics.rb', line 34 def published @published end |