Class: TVDB::Series::Episodes
- Defined in:
- lib/tvdb_client/series/series_episodes.rb
Instance Attribute Summary
Attributes inherited from Base
#connection, #data, #parameters, #route, #series_id
Instance Method Summary collapse
-
#initialize(options) ⇒ Episodes
constructor
A new instance of Episodes.
- #summary ⇒ Object
Methods inherited from Base
Constructor Details
#initialize(options) ⇒ Episodes
Returns a new instance of Episodes.
5 6 7 8 9 10 |
# File 'lib/tvdb_client/series/series_episodes.rb', line 5 def initialize( ) @connection = .fetch( :connection ) @series_id = .fetch( :series_id ) @parameters = .fetch( :params ) { {} } @route = "/series/#{series_id}/episodes" end |
Instance Method Details
#summary ⇒ Object
12 13 14 |
# File 'lib/tvdb_client/series/series_episodes.rb', line 12 def summary connection.get( "#{route}/summary" ).body end |