Class: CC::Formatters::SnapshotFormatter::Sample

Inherits:
Base
  • Object
show all
Defined in:
lib/cc/formatters/snapshot_formatter.rb

Overview

Override the base snapshot formatter for be more lax grouping information. This is useful to show more information for testing the service.

Instance Attribute Summary

Attributes inherited from Base

#alert_constants_payload, #compare_url, #details_url, #improved_constants_payload

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from CC::Formatters::SnapshotFormatter::Base

Instance Method Details

#decreased_constants_selectorObject



92
93
94
# File 'lib/cc/formatters/snapshot_formatter.rb', line 92

def decreased_constants_selector
  proc { |constant| to_rating(constant) < from_rating(constant) }
end

#improved_constants_selectorObject



96
97
98
# File 'lib/cc/formatters/snapshot_formatter.rb', line 96

def improved_constants_selector
  proc { |constant| to_rating(constant) > from_rating(constant) }
end

#new_constants_selectorObject



88
89
90
# File 'lib/cc/formatters/snapshot_formatter.rb', line 88

def new_constants_selector
  proc { |_| true }
end