Module: Shoutout::Metadata::QuickAccess

Included in:
Shoutout::Metadata
Defined in:
lib/shoutout/metadata.rb

Instance Method Summary collapse

Instance Method Details

#artistObject



53
54
55
# File 'lib/shoutout/metadata.rb', line 53

def artist
  now_playing.split(" - ")[0]
end

#now_playingObject



49
50
51
# File 'lib/shoutout/metadata.rb', line 49

def now_playing
  self[:stream_title]
end

#songObject



57
58
59
# File 'lib/shoutout/metadata.rb', line 57

def song
  now_playing.split(" - ")[1]
end

#websiteObject



45
46
47
# File 'lib/shoutout/metadata.rb', line 45

def website
  self[:stream_url]
end