Module: FatZebra::APIOperation::Find::ClassMethods

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

Instance Method Summary collapse

Instance Method Details

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

Find an API Resource

Parameters:

  • id (String)

    for the request

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

    for the request

  • Additional (Hash)

    options for the request

Returns:

  • (FatZebra::Object)

    response from the API



19
20
21
22
# File 'lib/fat_zebra/api_operation/find.rb', line 19

def find(id, params = {}, options = {})
  response = request(:get, "#{resource_path}/#{id}", params, options)
  initialize_from(response)
end