Class: RakutenApi::GenreSearch::Model

Inherits:
Base::Model show all
Defined in:
lib/rakuten_api/genre_search/model.rb

Constant Summary collapse

GENRE_SEARCH_CASTING =
{
  "genreId" => Proc.new{|o| o.to_i},
  'genreLevel' => Proc.new{|o| o.to_i}
}.freeze

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base::Model

downcase, from_hash, mapping, #to_hash

Instance Attribute Details

#genre_idObject

Returns the value of attribute genre_id.



13
14
15
# File 'lib/rakuten_api/genre_search/model.rb', line 13

def genre_id
  @genre_id
end

#genre_levelObject

Returns the value of attribute genre_level.



15
16
17
# File 'lib/rakuten_api/genre_search/model.rb', line 15

def genre_level
  @genre_level
end

#genre_nameObject

Returns the value of attribute genre_name.



14
15
16
# File 'lib/rakuten_api/genre_search/model.rb', line 14

def genre_name
  @genre_name
end

Class Method Details

.castingObject



17
18
19
# File 'lib/rakuten_api/genre_search/model.rb', line 17

def self.casting
  GENRE_SEARCH_CASTING
end