Module: FatZebra::APIOperation::Search::ClassMethods

Defined in:
lib/fat_zebra/api_operation/search.rb

Instance Method Summary collapse

Instance Method Details

#search(params = {}, options = {}) ⇒ FatZebra::Object

Search for API Resources

Parameters:

  • params (Hash) (defaults to: {})

    for the request

  • Additional (Hash)

    options for the request

Returns:

  • (FatZebra::Object)

    response from the API



26
27
28
29
30
31
# File 'lib/fat_zebra/api_operation/search.rb', line 26

def search(params = {}, options = {})
  params = DEFAULT_PARAMS.merge(params)

  response = request(:get, resource_path, params, options)
  initialize_from(response)
end