Class: Rakumarket::GenreFamily

Inherits:
Base show all
Defined in:
lib/rakumarket/models.rb

Class Method Summary collapse

Methods inherited from NibblerJSON

inspect_attributes

Class Method Details

.parse(response) ⇒ Object



140
141
142
143
144
# File 'lib/rakumarket/models.rb', line 140

def self.parse(response)
  response['genreId'] = response['current'].first['genreId'] if response['current'] && response['current'].any?
  response['genreName'] = response['current'].first['genreName'] if response['current'] && response['current'].any?
  super(response)
end