Class: Flightdeck::Overview::Tile
- Inherits:
-
Struct
- Object
- Struct
- Flightdeck::Overview::Tile
- Defined in:
- app/models/flightdeck/overview.rb
Overview
value is always display-ready text — a delimited count, a duration, or
"—" — so the view prints it without asking what kind of number it was.
trend is :up / :down / :flat and says which way the number moved, while
good says whether that movement is a good thing — more throughput is
good, more failures are not.
Instance Attribute Summary collapse
-
#detail ⇒ Object
Returns the value of attribute detail.
-
#good ⇒ Object
Returns the value of attribute good.
-
#label ⇒ Object
Returns the value of attribute label.
-
#trend ⇒ Object
Returns the value of attribute trend.
-
#unit ⇒ Object
Returns the value of attribute unit.
-
#value ⇒ Object
Returns the value of attribute value.
Instance Attribute Details
#detail ⇒ Object
Returns the value of attribute detail
16 17 18 |
# File 'app/models/flightdeck/overview.rb', line 16 def detail @detail end |
#good ⇒ Object
Returns the value of attribute good
16 17 18 |
# File 'app/models/flightdeck/overview.rb', line 16 def good @good end |
#label ⇒ Object
Returns the value of attribute label
16 17 18 |
# File 'app/models/flightdeck/overview.rb', line 16 def label @label end |
#trend ⇒ Object
Returns the value of attribute trend
16 17 18 |
# File 'app/models/flightdeck/overview.rb', line 16 def trend @trend end |
#unit ⇒ Object
Returns the value of attribute unit
16 17 18 |
# File 'app/models/flightdeck/overview.rb', line 16 def unit @unit end |
#value ⇒ Object
Returns the value of attribute value
16 17 18 |
# File 'app/models/flightdeck/overview.rb', line 16 def value @value end |