Class: Pandoru::Models::AdItem

Inherits:
PlaylistItem show all
Defined in:
lib/pandoru/models/playlist.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#data

Instance Method Summary collapse

Methods inherited from PlaylistItem

#audio_url, #bookmark_artist, #bookmark_song, #is_ad?, #sleep, #thumbs_down, #thumbs_up

Methods inherited from Base

date_field, field, fields, from_json, from_json_list, #inspect, #populate_from_json, #to_h

Constructor Details

#initialize(data = {}, api_client = nil) ⇒ AdItem

Returns a new instance of AdItem.



85
86
87
88
# File 'lib/pandoru/models/playlist.rb', line 85

def initialize(data = {}, api_client = nil)
  super(data, api_client)
  @is_ad = true
end

Instance Attribute Details

#station_idObject

Returns the value of attribute station_id.



83
84
85
# File 'lib/pandoru/models/playlist.rb', line 83

def station_id
  @station_id
end