Class: Flightdeck::Metrics::Series::Point

Inherits:
Struct
  • Object
show all
Defined in:
app/models/flightdeck/metrics/series.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#atObject

Returns the value of attribute at

Returns:

  • (Object)

    the current value of at



30
31
32
# File 'app/models/flightdeck/metrics/series.rb', line 30

def at
  @at
end

#failedObject

Returns the value of attribute failed

Returns:

  • (Object)

    the current value of failed



30
31
32
# File 'app/models/flightdeck/metrics/series.rb', line 30

def failed
  @failed
end

#secondsObject

Returns the value of attribute seconds

Returns:

  • (Object)

    the current value of seconds



30
31
32
# File 'app/models/flightdeck/metrics/series.rb', line 30

def seconds
  @seconds
end

#succeededObject

Returns the value of attribute succeeded

Returns:

  • (Object)

    the current value of succeeded



30
31
32
# File 'app/models/flightdeck/metrics/series.rb', line 30

def succeeded
  @succeeded
end

Instance Method Details

#blank?Boolean

Returns:

  • (Boolean)


32
# File 'app/models/flightdeck/metrics/series.rb', line 32

def blank? = seconds.nil?

#totalObject



31
# File 'app/models/flightdeck/metrics/series.rb', line 31

def total = succeeded.to_i + failed.to_i