Module: Omdb::Api::PublicApi::Search

Included in:
Omdb::Api::PublicApi
Defined in:
lib/omdb/api/public_api/search.rb

Instance Method Summary collapse

Instance Method Details

#search(value, **options) ⇒ Object



7
8
9
10
11
12
13
# File 'lib/omdb/api/public_api/search.rb', line 7

def search(value, **options)
  perform_get(
    klass: Omdb::Api::Types::Movies,
    query_params: { search: value }.merge(options),
    headers: options.fetch(:headers, {})
  )
end