Module: RedboothRuby::ClientOperations::Metadata

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

Instance Method Summary collapse

Instance Method Details

#metadata(attributes = {}) ⇒ Array

Retrieves all available objects from the Redbooth API by searching by given key and value into the metadata API

Parameters:

  • options (Hash)

    Options to pass to the API

Returns:

  • (Array)

    The available objects



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

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