Class: Omdb::Api::Client
- Inherits:
-
Object
- Object
- Omdb::Api::Client
- Includes:
- PublicApi
- Defined in:
- lib/omdb/api/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
Returns the value of attribute api_key.
Instance Method Summary collapse
-
#initialize(options = {}) {|_self| ... } ⇒ Client
constructor
A new instance of Client.
Methods included from PublicApi
Constructor Details
#initialize(options = {}) {|_self| ... } ⇒ Client
Returns a new instance of Client.
10 11 12 13 14 15 |
# File 'lib/omdb/api/client.rb', line 10 def initialize( = {}) .each_pair do |k, v| instance_variable_set("@#{k}", v) end yield(self) if block_given? end |
Instance Attribute Details
#api_key ⇒ Object
Returns the value of attribute api_key.
8 9 10 |
# File 'lib/omdb/api/client.rb', line 8 def api_key @api_key end |