Class: FanartApi::Client
- Inherits:
-
Object
- Object
- FanartApi::Client
- Defined in:
- lib/fanart_api/client.rb
Instance Attribute Summary collapse
-
#options ⇒ Object
readonly
Returns the value of attribute options.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #movie ⇒ Object
- #music ⇒ Object
- #tv ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
Returns a new instance of Client.
4 5 6 7 8 |
# File 'lib/fanart_api/client.rb', line 4 def initialize( = {}) @options = @options[:adapter] ||= :net_http end |
Instance Attribute Details
#options ⇒ Object (readonly)
Returns the value of attribute options.
2 3 4 |
# File 'lib/fanart_api/client.rb', line 2 def @options end |