Class: Flightdeck::Metrics::Series::Window
- Inherits:
-
Struct
- Object
- Struct
- Flightdeck::Metrics::Series::Window
- Defined in:
- app/models/flightdeck/metrics/series.rb
Instance Attribute Summary collapse
-
#bucket_seconds ⇒ Object
Returns the value of attribute bucket_seconds.
-
#duration ⇒ Object
Returns the value of attribute duration.
-
#key ⇒ Object
Returns the value of attribute key.
-
#label ⇒ Object
Returns the value of attribute label.
-
#subtitle ⇒ Object
Returns the value of attribute subtitle.
-
#tick_every ⇒ Object
Returns the value of attribute tick_every.
-
#tick_format ⇒ Object
Returns the value of attribute tick_format.
Instance Method Summary collapse
Instance Attribute Details
#bucket_seconds ⇒ Object
Returns the value of attribute bucket_seconds
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def bucket_seconds @bucket_seconds end |
#duration ⇒ Object
Returns the value of attribute duration
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def duration @duration end |
#key ⇒ Object
Returns the value of attribute key
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def key @key end |
#label ⇒ Object
Returns the value of attribute label
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def label @label end |
#subtitle ⇒ Object
Returns the value of attribute subtitle
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def subtitle @subtitle end |
#tick_every ⇒ Object
Returns the value of attribute tick_every
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def tick_every @tick_every end |
#tick_format ⇒ Object
Returns the value of attribute tick_format
12 13 14 |
# File 'app/models/flightdeck/metrics/series.rb', line 12 def tick_format @tick_format end |
Instance Method Details
#bucket_count ⇒ Object
14 |
# File 'app/models/flightdeck/metrics/series.rb', line 14 def bucket_count = (duration / bucket_seconds).to_i |