Module: Series
- Included in:
- DataDelivery
- Defined in:
- lib/data_delivery/series.rb
Instance Method Summary collapse
- #series_airings(series_id, lineup_id, start_date_time, params) ⇒ Object
- #series_details(series_id, params) ⇒ Object
- #series_episodes(series_id, params) ⇒ Object
Instance Method Details
#series_airings(series_id, lineup_id, start_date_time, params) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/data_delivery/series.rb', line 8 def series_airings(series_id, lineup_id, start_date_time, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key params[:startDateTime] = start_date_time params[:lineupId] = lineup_id JSON.parse(get("series/#{series_id}/airings", params)) end |
#series_details(series_id, params) ⇒ Object
2 3 4 5 6 |
# File 'lib/data_delivery/series.rb', line 2 def series_details(series_id, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("series/#{series_id}", params)) end |
#series_episodes(series_id, params) ⇒ Object
16 17 18 19 20 |
# File 'lib/data_delivery/series.rb', line 16 def series_episodes(series_id, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("series/#{series_id}/episodes", params)) end |