Class: Pandoru::Models::AdItem
- Inherits:
-
PlaylistItem
- Object
- Base
- PlaylistItem
- Pandoru::Models::AdItem
- Defined in:
- lib/pandoru/models/playlist.rb
Instance Attribute Summary collapse
-
#station_id ⇒ Object
Returns the value of attribute station_id.
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(data = {}, api_client = nil) ⇒ AdItem
constructor
A new instance of AdItem.
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_id ⇒ Object
Returns the value of attribute station_id.
83 84 85 |
# File 'lib/pandoru/models/playlist.rb', line 83 def station_id @station_id end |