Module: Sports
- Defined in:
- lib/data_delivery/sports.rb
Instance Method Summary collapse
- #organization_airings(organization_id, lineup_id, start_date_time, params) ⇒ Object
- #sports_event_airings(sports_id, lineup_id, start_date_time, params) ⇒ Object
- #sports_nonevent_airings(sports_id, lineup_id, start_date_time, params) ⇒ Object
- #sports_universities(params) ⇒ Object
- #sports_with_organization(sports_id, params) ⇒ Object
- #team_airings(team_brand_id, lineup_id, start_date_time, params) ⇒ Object
- #team_by_org(organization_id, params) ⇒ Object
- #team_by_university(university_id, params) ⇒ Object
- #team_details(team_brand_id, params) ⇒ Object
Instance Method Details
#organization_airings(organization_id, lineup_id, start_date_time, params) ⇒ Object
56 57 58 59 60 61 62 |
# File 'lib/data_delivery/sports.rb', line 56 def organization_airings(organization_id, lineup_id, start_date_time, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key params[:lineupId] = lineup_id params[:startDateTime] = start_date_time JSON.parse(get("sports/organizations/#{organization_id}/airings", params)) end |
#sports_event_airings(sports_id, lineup_id, start_date_time, params) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/data_delivery/sports.rb', line 8 def sports_event_airings(sports_id, lineup_id, start_date_time, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key params[:lineupId] = lineup_id params[:startDateTime] = start_date_time JSON.parse(get("sports/#{sports_id}/events/airings", params)) end |
#sports_nonevent_airings(sports_id, lineup_id, start_date_time, params) ⇒ Object
16 17 18 19 20 21 22 |
# File 'lib/data_delivery/sports.rb', line 16 def sports_nonevent_airings(sports_id, lineup_id, start_date_time, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key params[:lineupId] = lineup_id params[:startDateTime] = start_date_time JSON.parse(get("sports/#{sports_id}/non-events/airings", params)) end |
#sports_universities(params) ⇒ Object
24 25 26 27 28 |
# File 'lib/data_delivery/sports.rb', line 24 def sports_universities(params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get('sports/universities', params)) end |
#sports_with_organization(sports_id, params) ⇒ Object
2 3 4 5 6 |
# File 'lib/data_delivery/sports.rb', line 2 def sports_with_organization(sports_id, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("sports/#{sports_id}", params)) end |
#team_airings(team_brand_id, lineup_id, start_date_time, params) ⇒ Object
48 49 50 51 52 53 54 |
# File 'lib/data_delivery/sports.rb', line 48 def team_airings(team_brand_id, lineup_id, start_date_time, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key params[:lineupId] = lineup_id params[:startDateTime] = start_date_time JSON.parse(get("sports/team/#{team_brand_id}/airings", params)) end |
#team_by_org(organization_id, params) ⇒ Object
30 31 32 33 34 |
# File 'lib/data_delivery/sports.rb', line 30 def team_by_org(organization_id, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("sports/organizations/#{organization_id}", params)) end |
#team_by_university(university_id, params) ⇒ Object
36 37 38 39 40 |
# File 'lib/data_delivery/sports.rb', line 36 def team_by_university(university_id, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("sports/universities/#{university_id}", params)) end |
#team_details(team_brand_id, params) ⇒ Object
42 43 44 45 46 |
# File 'lib/data_delivery/sports.rb', line 42 def team_details(team_brand_id, params) params = {} unless params.is_a? Hash params[:api_key] = @api_key JSON.parse(get("sports/teams/#{team_brand_id}", params)) end |