Class: TVDB::Series::Base
- Inherits:
-
Object
- Object
- TVDB::Series::Base
- Defined in:
- lib/tvdb_client/series/base.rb
Instance Attribute Summary collapse
-
#connection ⇒ Object
Returns the value of attribute connection.
-
#data ⇒ Object
readonly
Returns the value of attribute data.
-
#parameters ⇒ Object
Returns the value of attribute parameters.
-
#route ⇒ Object
readonly
Returns the value of attribute route.
-
#series_id ⇒ Object
readonly
Returns the value of attribute series_id.
Instance Method Summary collapse
-
#initialize ⇒ Base
constructor
A new instance of Base.
- #list ⇒ Object
- #query(options) ⇒ Object
- #query_params ⇒ Object
Constructor Details
#initialize ⇒ Base
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
#connection ⇒ Object
Returns the value of attribute connection.
6 7 8 |
# File 'lib/tvdb_client/series/base.rb', line 6 def connection @connection end |
#data ⇒ Object (readonly)
Returns the value of attribute data.
5 6 7 |
# File 'lib/tvdb_client/series/base.rb', line 5 def data @data end |
#parameters ⇒ Object
Returns the value of attribute parameters.
6 7 8 |
# File 'lib/tvdb_client/series/base.rb', line 6 def parameters @parameters end |
#route ⇒ Object (readonly)
Returns the value of attribute route.
5 6 7 |
# File 'lib/tvdb_client/series/base.rb', line 5 def route @route end |
#series_id ⇒ Object (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
#list ⇒ Object
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( ) connection.get( "#{route}/query", ).body end |
#query_params ⇒ Object
20 21 22 |
# File 'lib/tvdb_client/series/base.rb', line 20 def query_params connection.get( "#{route}/query/params" ).body end |