Module: RedboothRuby::ClientOperations::Search

Included in:
RedboothRuby::Client
Defined in:
lib/redbooth-ruby/client_operations/search.rb

Instance Method Summary collapse

Instance Method Details

#search(attributes = {}) ⇒ Array

Retrieves all available objects from the Redbooth API by searching for the given parameters and query

Parameters:

  • options (Hash)

    Options to pass to the API

Returns:

  • (Array)

    The available objects



10
11
12
13
# File 'lib/redbooth-ruby/client_operations/search.rb', line 10

def search(attributes = {})
  response = RedboothRuby.request(:get, nil, 'search' , attributes, { session: session })
  collection_from attributes, response, session
end