Class: KodiClient::Types::Audio::Genre
- Inherits:
-
Object
- Object
- KodiClient::Types::Audio::Genre
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/audio/genre_type.rb
Overview
Audio.Details.Genres kodi.wiki/view/JSON-RPC_API/v12#Audio.Details.Genres
Instance Attribute Summary collapse
-
#genre_id ⇒ Object
readonly
Returns the value of attribute genre_id.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Instance Method Summary collapse
-
#initialize(genre_id, title) ⇒ Genre
constructor
A new instance of Genre.
Methods included from Extensions::Creatable
arr_to_mapping, attr_accessor, attr_reader, attr_writer, create, create_list, extract_field_from_hash, fields_to_map, hash_to_arr, type_mapping
Methods included from Extensions::Comparable
Constructor Details
#initialize(genre_id, title) ⇒ Genre
Returns a new instance of Genre.
13 14 15 16 |
# File 'lib/kodi_client/types/audio/genre_type.rb', line 13 def initialize(genre_id, title) @genre_id = genre_id @title = title end |
Instance Attribute Details
#genre_id ⇒ Object (readonly)
Returns the value of attribute genre_id.
11 12 13 |
# File 'lib/kodi_client/types/audio/genre_type.rb', line 11 def genre_id @genre_id end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
11 12 13 |
# File 'lib/kodi_client/types/audio/genre_type.rb', line 11 def title @title end |