Sha256: 32f246359c716b4f12b8d9d5c920a11565d7764a1e1d318ab543162cd98d8a78

Contents?: true

Size: 319 Bytes

Versions: 7

Compression:

Stored size: 319 Bytes

Contents

# frozen_string_literal: true

module Omdb
  module Api
    class Client
      include PublicApi

      attr_accessor :api_key

      def initialize(options = {})
        options.each_pair do |k, v|
          instance_variable_set("@#{k}", v)
        end
        yield(self) if block_given?
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
omdb-api-1.4.3 lib/omdb/api/client.rb
omdb-api-1.4.2 lib/omdb/api/client.rb
omdb-api-1.4.1 lib/omdb/api/client.rb
omdb-api-1.4.0 lib/omdb/api/client.rb
omdb-api-1.3.0 lib/omdb/api/client.rb
omdb-api-1.2.0 lib/omdb/api/client.rb
omdb-api-1.0.0 lib/omdb/api/client.rb