Class: Omdb::Api::Client
- Inherits:
-
Object
- Object
- Omdb::Api::Client
- Includes:
- PublicApi
- Defined in:
- lib/omdb/api/client.rb
Instance Attribute Summary collapse
-
#configuration ⇒ Object
readonly
Returns the value of attribute configuration.
Instance Method Summary collapse
-
#initialize(options = {}) {|@configuration| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from PublicApi::Search
Methods included from PublicApi::FindBy
Methods included from Utils
#_handle_response, #_response_handler, #perform_get, #perform_request
Constructor Details
#initialize(options = {}) {|@configuration| ... } ⇒ Client
Returns a new instance of Client.
12 13 14 15 16 17 18 |
# File 'lib/omdb/api/client.rb', line 12 def initialize( = {}) @configuration = Configuration.new .each { |k, v| @configuration.__send__("#{k}=", v) } yield(@configuration) if block_given? end |
Instance Attribute Details
#configuration ⇒ Object (readonly)
Returns the value of attribute configuration.
10 11 12 |
# File 'lib/omdb/api/client.rb', line 10 def configuration @configuration end |