Class: IceMX::Metrics

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

Instance Attribute Summary collapse

Attributes inherited from Ice::Value

#_ice_slicedData

Instance Method Summary collapse

Methods inherited from Ice::Value

#ice_getSlicedData, #ice_id, ice_staticId, #inspect

Constructor Details

#initialize(id = '', total = 0, current = 0, totalLifetime = 0, failures = 0) ⇒ Metrics

Returns a new instance of Metrics.



32
33
34
35
36
37
38
# File 'lib/Ice/Metrics.rb', line 32

def initialize(id='', total=0, current=0, totalLifetime=0, failures=0)
    @id = id
    @total = total
    @current = current
    @totalLifetime = totalLifetime
    @failures = failures
end

Instance Attribute Details

#currentObject

Returns the value of attribute current.



40
41
42
# File 'lib/Ice/Metrics.rb', line 40

def current
  @current
end

#failuresObject

Returns the value of attribute failures.



40
41
42
# File 'lib/Ice/Metrics.rb', line 40

def failures
  @failures
end

#idObject

Returns the value of attribute id.



40
41
42
# File 'lib/Ice/Metrics.rb', line 40

def id
  @id
end

#totalObject

Returns the value of attribute total.



40
41
42
# File 'lib/Ice/Metrics.rb', line 40

def total
  @total
end

#totalLifetimeObject

Returns the value of attribute totalLifetime.



40
41
42
# File 'lib/Ice/Metrics.rb', line 40

def totalLifetime
  @totalLifetime
end