Module: PactBroker::Api::Resources::FilterMethods

Included in:
Integrations, PacticipantBranches
Defined in:
lib/pact_broker/api/resources/filter_methods.rb

Instance Method Summary collapse

Instance Method Details

#filter_optionsObject



5
6
7
8
9
10
11
# File 'lib/pact_broker/api/resources/filter_methods.rb', line 5

def filter_options
  if request.query.has_key?("q")
    { query_string: request.query["q"] }
  else
    {}
  end
end