Class: TVDB::Series::Base

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

Direct Known Subclasses

Episodes, Filter, Images

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeBase

Returns a new instance of Base.



8
9
10
# File 'lib/tvdb_client/series/base.rb', line 8

def initialize
  abstract_method
end

Instance Attribute Details

#connectionObject

Returns the value of attribute connection.



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

def connection
  @connection
end

#dataObject (readonly)

Returns the value of attribute data.



5
6
7
# File 'lib/tvdb_client/series/base.rb', line 5

def data
  @data
end

#parametersObject

Returns the value of attribute parameters.



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

def parameters
  @parameters
end

#routeObject (readonly)

Returns the value of attribute route.



5
6
7
# File 'lib/tvdb_client/series/base.rb', line 5

def route
  @route
end

#series_idObject (readonly)

Returns the value of attribute series_id.



5
6
7
# File 'lib/tvdb_client/series/base.rb', line 5

def series_id
  @series_id
end

Instance Method Details

#listObject



12
13
14
# File 'lib/tvdb_client/series/base.rb', line 12

def list
  connection.get( route, parameters ).body
end

#query(options) ⇒ Object



16
17
18
# File 'lib/tvdb_client/series/base.rb', line 16

def query( options )
  connection.get( "#{route}/query", options ).body
end

#query_paramsObject



20
21
22
# File 'lib/tvdb_client/series/base.rb', line 20

def query_params
  connection.get( "#{route}/query/params" ).body
end