Class: Flightdeck::GroupedFailures::Group
- Inherits:
-
Struct
- Object
- Struct
- Flightdeck::GroupedFailures::Group
- Defined in:
- app/models/flightdeck/grouped_failures.rb
Instance Attribute Summary collapse
-
#key ⇒ Object
Returns the value of attribute key.
-
#rows ⇒ Object
Returns the value of attribute rows.
Instance Method Summary collapse
Instance Attribute Details
#key ⇒ Object
Returns the value of attribute key
10 11 12 |
# File 'app/models/flightdeck/grouped_failures.rb', line 10 def key @key end |
#rows ⇒ Object
Returns the value of attribute rows
10 11 12 |
# File 'app/models/flightdeck/grouped_failures.rb', line 10 def rows @rows end |
Instance Method Details
#count ⇒ Object
11 |
# File 'app/models/flightdeck/grouped_failures.rb', line 11 def count = rows.size |
#first_failed_at ⇒ Object
13 |
# File 'app/models/flightdeck/grouped_failures.rb', line 13 def first_failed_at = rows.filter_map(&:failed_at).min |
#job_ids ⇒ Object
12 |
# File 'app/models/flightdeck/grouped_failures.rb', line 12 def job_ids = rows.map(&:id) |
#last_failed_at ⇒ Object
14 |
# File 'app/models/flightdeck/grouped_failures.rb', line 14 def last_failed_at = rows.filter_map(&:failed_at).max |