Class: SWR3::NowPlaying::ArtistMapper

Inherits:
Object
  • Object
show all
Defined in:
lib/swr3_now_playing/mapper.rb

Class Method Summary collapse

Class Method Details

.map(json) ⇒ Object



12
13
14
# File 'lib/swr3_now_playing/mapper.rb', line 12

def map(json)
  Artist.new(CGI.unescapeHTML(json['name']), json['link'])
end