Class: ThetvdbApi::Client
- Inherits:
-
Object
- Object
- ThetvdbApi::Client
- Defined in:
- lib/thetvdb_api/client.rb
Instance Attribute Summary collapse
-
#api_key ⇒ Object
readonly
Returns the value of attribute api_key.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
Instance Method Summary collapse
- #actor ⇒ Object
- #banner ⇒ Object
- #episode ⇒ Object
-
#initialize(options = {}) ⇒ Client
constructor
A new instance of Client.
- #search ⇒ Object
- #series ⇒ Object
- #update ⇒ Object
Constructor Details
#initialize(options = {}) ⇒ Client
4 5 6 7 |
# File 'lib/thetvdb_api/client.rb', line 4 def initialize( = {}) @api_key = [:api_key] ? [:api_key] : ThetvdbApi::Configuration.api_key @language = [:language] ? [:language] : ThetvdbApi::Configuration.language end |
Instance Attribute Details
#api_key ⇒ Object (readonly)
Returns the value of attribute api_key.
2 3 4 |
# File 'lib/thetvdb_api/client.rb', line 2 def api_key @api_key end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
2 3 4 |
# File 'lib/thetvdb_api/client.rb', line 2 def language @language end |
Instance Method Details
#actor ⇒ Object
17 18 19 |
# File 'lib/thetvdb_api/client.rb', line 17 def actor @actor ||= ThetvdbApi::Actor.new(self) end |
#banner ⇒ Object
21 22 23 |
# File 'lib/thetvdb_api/client.rb', line 21 def ||= ThetvdbApi::Banner.new(self) end |
#episode ⇒ Object
25 26 27 |
# File 'lib/thetvdb_api/client.rb', line 25 def episode @episode ||= ThetvdbApi::Episode.new(self) end |
#search ⇒ Object
9 10 11 |
# File 'lib/thetvdb_api/client.rb', line 9 def search @search ||= ThetvdbApi::Search.new(self) end |
#series ⇒ Object
13 14 15 |
# File 'lib/thetvdb_api/client.rb', line 13 def series @series ||= ThetvdbApi::Series.new(self) end |
#update ⇒ Object
29 30 31 |
# File 'lib/thetvdb_api/client.rb', line 29 def update @update ||= ThetvdbApi::Update.new(self) end |