Class: Flightdeck::GroupedFailures::Group

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#keyObject

Returns the value of attribute key

Returns:

  • (Object)

    the current value of key



10
11
12
# File 'app/models/flightdeck/grouped_failures.rb', line 10

def key
  @key
end

#rowsObject

Returns the value of attribute rows

Returns:

  • (Object)

    the current value of rows



10
11
12
# File 'app/models/flightdeck/grouped_failures.rb', line 10

def rows
  @rows
end

Instance Method Details

#countObject



11
# File 'app/models/flightdeck/grouped_failures.rb', line 11

def count = rows.size

#first_failed_atObject



13
# File 'app/models/flightdeck/grouped_failures.rb', line 13

def first_failed_at = rows.filter_map(&:failed_at).min

#job_idsObject



12
# File 'app/models/flightdeck/grouped_failures.rb', line 12

def job_ids = rows.map(&:id)

#last_failed_atObject



14
# File 'app/models/flightdeck/grouped_failures.rb', line 14

def last_failed_at = rows.filter_map(&:failed_at).max