Class: PactBroker::Matrix::QueryResults

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

Direct Known Subclasses

QueryResultsWithDeploymentStatusSummary

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(rows, selectors, options, resolved_selectors, integrations) ⇒ QueryResults

Returns a new instance of QueryResults.



6
7
8
9
10
11
12
# File 'lib/pact_broker/matrix/query_results.rb', line 6

def initialize rows, selectors, options, resolved_selectors, integrations
  super(rows)
  @selectors = selectors
  @resolved_selectors = resolved_selectors
  @options = options
  @integrations = integrations
end

Instance Attribute Details

#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_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



14
15
16
# File 'lib/pact_broker/matrix/query_results.rb', line 14

def rows
  to_a
end