Class: Flightdeck::Overview::Tile

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#detailObject

Returns the value of attribute detail

Returns:

  • (Object)

    the current value of detail



16
17
18
# File 'app/models/flightdeck/overview.rb', line 16

def detail
  @detail
end

#goodObject

Returns the value of attribute good

Returns:

  • (Object)

    the current value of good



16
17
18
# File 'app/models/flightdeck/overview.rb', line 16

def good
  @good
end

#labelObject

Returns the value of attribute label

Returns:

  • (Object)

    the current value of label



16
17
18
# File 'app/models/flightdeck/overview.rb', line 16

def label
  @label
end

#trendObject

Returns the value of attribute trend

Returns:

  • (Object)

    the current value of trend



16
17
18
# File 'app/models/flightdeck/overview.rb', line 16

def trend
  @trend
end

#unitObject

Returns the value of attribute unit

Returns:

  • (Object)

    the current value of unit



16
17
18
# File 'app/models/flightdeck/overview.rb', line 16

def unit
  @unit
end

#valueObject

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



16
17
18
# File 'app/models/flightdeck/overview.rb', line 16

def value
  @value
end