Module: Celebrities

Included in:
DataDelivery
Defined in:
lib/data_delivery/celebrities.rb

Instance Method Summary collapse

Instance Method Details

#celebrity_airings(person_id, lineup_id, start_date_time, params) ⇒ Object



8
9
10
11
12
13
14
# File 'lib/data_delivery/celebrities.rb', line 8

def celebrity_airings(person_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("celebs/#{person_id}/airings", params))
end

#celebrity_details(person_id, params) ⇒ Object



2
3
4
5
6
# File 'lib/data_delivery/celebrities.rb', line 2

def celebrity_details(person_id, params)
  params = {} unless params.is_a? Hash
  params[:api_key] = @api_key
  JSON.parse(get("celebs/#{person_id}", params))
end

#celebrity_images(person_id, params) ⇒ Object



24
25
26
27
28
# File 'lib/data_delivery/celebrities.rb', line 24

def celebrity_images(person_id, params)
  params = {} unless params.is_a? Hash
  params[:api_key] = @api_key
  JSON.parse(get("celebs/#{person_id}/images", params))
end

#celebrity_on_talk_shows(lineup_id, start_date_time, params) ⇒ Object



16
17
18
19
20
21
22
# File 'lib/data_delivery/celebrities.rb', line 16

def celebrity_on_talk_shows(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('celebs/talkShowAirings', params))
end