Class: TVDB::Series::Episodes

Inherits:
Base
  • Object
show all
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

Methods inherited from Base

#list, #query, #query_params

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( options )
  @connection = options.fetch( :connection )
  @series_id  = options.fetch( :series_id )
  @parameters = options.fetch( :params ) { {} }
  @route      = "/series/#{series_id}/episodes"
end

Instance Method Details

#summaryObject



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

def summary
  connection.get( "#{route}/summary" ).body
end