Sha256: dc32fc7e4b487c8d5d908e3042a4252ff01fc15d3aec4f93b4e7825c6363876e
Contents?: true
Size: 492 Bytes
Versions: 1
Compression:
Stored size: 492 Bytes
Contents
# frozen_string_literal: true require 'omdb/api/public_api' module Omdb module Api class Client include PublicApi attr_reader :configuration def initialize(options = {}) @configuration = Configuration.new options.each { |k, v| @configuration.__send__("#{k}=", v) } yield(@configuration) if block_given? end class Configuration attr_accessor :api_key end private_constant :Configuration end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
omdb-api-2.0.0 | lib/omdb/api/client.rb |