class SpotTracks::Player

Constants

HOST

Public Instance Methods

Private Instance Methods

api_data(url) click to toggle source
# File lib/spot_tracks/player.rb, line 15
def api_data(url)
  JSON.parse(get(url))
end
get(url) click to toggle source
# File lib/spot_tracks/player.rb, line 19
def get(url)
  open(url).read
end