Module: Programs
- Included in:
- DataDelivery
- Defined in:
- lib/data_delivery/programs.rb
Instance Method Summary collapse
- #program_airings(tmsid, lineup_id, start_date_time, params) ⇒ Object
- #program_details(tmsid, params) ⇒ Object
- #program_search(params) ⇒ Object
Instance Method Details
#program_airings(tmsid, lineup_id, start_date_time, params) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/data_delivery/programs.rb', line 8 def program_airings(tmsid, 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("programs/#{tmsid}/airings", params)) end |
#program_details(tmsid, params) ⇒ Object
2 3 4 5 6 |
# File 'lib/data_delivery/programs.rb', line 2 def program_details(tmsid, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("programs/#{tmsid}", params)) end |
#program_search(params) ⇒ Object
16 17 18 19 20 |
# File 'lib/data_delivery/programs.rb', line 16 def program_search(params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get('programs/search', params)) end |