Class: Lyriki::Legacy::ArtistData
- Inherits:
-
Object
- Object
- Lyriki::Legacy::ArtistData
- Includes:
- WebHelpers
- Defined in:
- lib/lyriki/legacy/artist_data.rb
Instance Method Summary collapse
-
#initialize(name) ⇒ ArtistData
constructor
A new instance of ArtistData.
- #response_data ⇒ Object
Methods included from WebHelpers
Constructor Details
#initialize(name) ⇒ ArtistData
Returns a new instance of ArtistData.
10 11 12 |
# File 'lib/lyriki/legacy/artist_data.rb', line 10 def initialize(name) @data = get(url_for_artist(name)) end |
Instance Method Details
#response_data ⇒ Object
14 15 16 |
# File 'lib/lyriki/legacy/artist_data.rb', line 14 def response_data JSON.parse @data end |