Class: PactBroker::Matrix::QueryResults

Inherits:
Array
  • Object
show all
Defined in:
lib/pact_broker/matrix/query_results.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(considered_rows, ignored_rows, selectors, options, resolved_selectors, resolved_ignore_selectors, integrations) ⇒ QueryResults

rubocop: disable Metrics/ParameterLists



7
8
9
10
11
12
13
14
15
16
# File 'lib/pact_broker/matrix/query_results.rb', line 7

def initialize considered_rows, ignored_rows, selectors, options, resolved_selectors, resolved_ignore_selectors, integrations
  super(considered_rows + ignored_rows)
  @considered_rows = considered_rows
  @ignored_rows = ignored_rows
  @selectors = selectors
  @options = options
  @resolved_selectors = resolved_selectors
  @resolved_ignore_selectors = resolved_ignore_selectors
  @integrations = integrations
end

Instance Attribute Details

#considered_rowsObject (readonly)

Returns the value of attribute considered_rows.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def considered_rows
  @considered_rows
end

#ignored_rowsObject (readonly)

Returns the value of attribute ignored_rows.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def ignored_rows
  @ignored_rows
end

#integrationsObject (readonly)

Returns the value of attribute integrations.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def integrations
  @integrations
end

#optionsObject (readonly)

Returns the value of attribute options.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def options
  @options
end

#resolved_ignore_selectorsObject (readonly)

Returns the value of attribute resolved_ignore_selectors.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def resolved_ignore_selectors
  @resolved_ignore_selectors
end

#resolved_selectorsObject (readonly)

Returns the value of attribute resolved_selectors.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def resolved_selectors
  @resolved_selectors
end

#selectorsObject (readonly)

Returns the value of attribute selectors.



4
5
6
# File 'lib/pact_broker/matrix/query_results.rb', line 4

def selectors
  @selectors
end

Instance Method Details

#rowsObject

rubocop: enable Metrics/ParameterLists



19
20
21
# File 'lib/pact_broker/matrix/query_results.rb', line 19

def rows
  to_a
end