Class: TVDB::Client
- Inherits:
-
Object
- Object
- TVDB::Client
- Defined in:
- lib/tvdb_client/client.rb
Instance Attribute Summary collapse
-
#auth ⇒ Object
readonly
Returns the value of attribute auth.
-
#connection ⇒ Object
Returns the value of attribute connection.
Instance Method Summary collapse
-
#initialize(options) ⇒ Client
constructor
A new instance of Client.
- #refresh_token ⇒ Object
- #series(series_id, options = {}) ⇒ Object
Constructor Details
#initialize(options) ⇒ Client
Returns a new instance of Client.
6 7 8 |
# File 'lib/tvdb_client/client.rb', line 6 def initialize( ) authenticate( ) end |
Instance Attribute Details
#auth ⇒ Object (readonly)
Returns the value of attribute auth.
4 5 6 |
# File 'lib/tvdb_client/client.rb', line 4 def auth @auth end |
#connection ⇒ Object
Returns the value of attribute connection.
3 4 5 |
# File 'lib/tvdb_client/client.rb', line 3 def connection @connection end |
Instance Method Details
#refresh_token ⇒ Object
10 11 12 |
# File 'lib/tvdb_client/client.rb', line 10 def refresh_token auth.refresh_token end |