Sha256: ab8e3ca7fc9a2a6c447c9708b0ec749c1631ac6c9f1a34ea7586cd09ddf5269b
Contents?: true
Size: 600 Bytes
Versions: 1
Compression:
Stored size: 600 Bytes
Contents
# frozen_string_literal: true module Omdb module Api module PublicApi module FindBy def find_by_id(id, **options) perform_get( klass: Omdb::Api::Types::Movie, query_params: { id: id }.merge(options), headers: options.fetch(:headers, {}) ) end def find_by_title(title, **options) perform_get( klass: Omdb::Api::Types::Movie, query_params: { title: title }.merge(options), headers: options.fetch(:headers, {}) ) end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omdb-api-2.0.0 | lib/omdb/api/public_api/find_by.rb |