Class: TVDB::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/tvdb_client/client.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Client

Returns a new instance of Client.



6
7
8
# File 'lib/tvdb_client/client.rb', line 6

def initialize( options )
  authenticate( options )
end

Instance Attribute Details

#authObject (readonly)

Returns the value of attribute auth.



4
5
6
# File 'lib/tvdb_client/client.rb', line 4

def auth
  @auth
end

#connectionObject

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_tokenObject



10
11
12
# File 'lib/tvdb_client/client.rb', line 10

def refresh_token
  auth.refresh_token
end

#series(series_id, options = {}) ⇒ Object



14
15
16
# File 'lib/tvdb_client/client.rb', line 14

def series( series_id, options = {} )
  TVDB::Series.new( connection, series_id, options )
end