module Shoutout::Metadata::QuickAccess

Public Instance Methods

artist() click to toggle source
# File lib/shoutout/metadata.rb, line 53
def artist
  artist_and_song[0]
end
now_playing() click to toggle source
# File lib/shoutout/metadata.rb, line 49
def now_playing
  self[:stream_title]
end
song() click to toggle source
# File lib/shoutout/metadata.rb, line 57
def song
  artist_and_song[1]
end
website() click to toggle source
# File lib/shoutout/metadata.rb, line 45
def website
  self[:stream_url]
end

Private Instance Methods

artist_and_song() click to toggle source
# File lib/shoutout/metadata.rb, line 62
def artist_and_song
  @artist_and_song ||= now_playing.split(" - ", 2)
end