Class: KodiClient::Types::Library::LibraryDetailsGenre
- Inherits:
-
Object
- Object
- KodiClient::Types::Library::LibraryDetailsGenre
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable, Items::ItemDetailsBase
- Defined in:
- lib/kodi_client/types/library/library_details_genre_type.rb
Overview
Library.Details.Genre kodi.wiki/view/JSON-RPC_API/v12#Library.Details.Genre
Instance Attribute Summary collapse
-
#source_id ⇒ Object
readonly
Returns the value of attribute source_id.
-
#thumbnail ⇒ Object
readonly
Returns the value of attribute thumbnail.
-
#title ⇒ Object
readonly
Returns the value of attribute title.
Attributes included from Items::ItemDetailsBase
Instance Method Summary collapse
-
#initialize(genre_id, source_id, thumbnail, title, label) ⇒ LibraryDetailsGenre
constructor
A new instance of LibraryDetailsGenre.
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
Methods included from Items::ItemDetailsBase
#item_details_base, #item_details_base_by_hash, #item_details_base_mappings
Constructor Details
#initialize(genre_id, source_id, thumbnail, title, label) ⇒ LibraryDetailsGenre
Returns a new instance of LibraryDetailsGenre.
16 17 18 19 20 21 22 |
# File 'lib/kodi_client/types/library/library_details_genre_type.rb', line 16 def initialize(genre_id, source_id, thumbnail, title, label) @genre_id = genre_id @title = title @thumbnail = thumbnail @source_id = source_id item_details_base(label) end |
Instance Attribute Details
#source_id ⇒ Object (readonly)
Returns the value of attribute source_id.
12 13 14 |
# File 'lib/kodi_client/types/library/library_details_genre_type.rb', line 12 def source_id @source_id end |
#thumbnail ⇒ Object (readonly)
Returns the value of attribute thumbnail.
12 13 14 |
# File 'lib/kodi_client/types/library/library_details_genre_type.rb', line 12 def thumbnail @thumbnail end |
#title ⇒ Object (readonly)
Returns the value of attribute title.
12 13 14 |
# File 'lib/kodi_client/types/library/library_details_genre_type.rb', line 12 def title @title end |