Module: KodiClient::Types::Audio::AudioDetailsBase
- Includes:
- Media::MediaDetailsBase
- Included in:
- AudioDetailsArtist, AudioDetailsMedia
- Defined in:
- lib/kodi_client/types/audio/audio_details_base_type.rb
Overview
Audio.Details.Base kodi.wiki/view/JSON-RPC_API/v12#Audio.Details.Base
Instance Attribute Summary collapse
-
#art ⇒ Object
readonly
Returns the value of attribute art.
-
#date_added ⇒ Object
readonly
Returns the value of attribute date_added.
-
#genre ⇒ Object
readonly
Returns the value of attribute genre.
Attributes included from Media::MediaDetailsBase
Attributes included from Items::ItemDetailsBase
Instance Method Summary collapse
- #audio_details_base(art, date_added, genre, fan_art, thumbnail, label) ⇒ Object
- #audio_details_base_by_hash(hash) ⇒ Object
- #audio_details_base_mappings ⇒ Object
Methods included from Media::MediaDetailsBase
#media_details_base, #media_details_base_by_hash, #media_details_base_mappings
Methods included from Items::ItemDetailsBase
#item_details_base, #item_details_base_by_hash, #item_details_base_mappings
Instance Attribute Details
#art ⇒ Object (readonly)
Returns the value of attribute art.
10 11 12 |
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 10 def art @art end |
#date_added ⇒ Object (readonly)
Returns the value of attribute date_added.
10 11 12 |
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 10 def date_added @date_added end |
#genre ⇒ Object (readonly)
Returns the value of attribute genre.
10 11 12 |
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 10 def genre @genre end |
Instance Method Details
#audio_details_base(art, date_added, genre, fan_art, thumbnail, label) ⇒ Object
21 22 23 24 25 26 |
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 21 def audio_details_base(art, date_added, genre, fan_art, thumbnail, label) @art = art @date_added = date_added @genre = genre media_details_base(fan_art, thumbnail, label) end |
#audio_details_base_by_hash(hash) ⇒ Object
16 17 18 19 |
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 16 def audio_details_base_by_hash(hash) audio_details_base(*Extensions::Creatable.hash_to_arr(hash, %w[art date_added genre fan_art thumbnail label]), audio_details_base_mappings) end |
#audio_details_base_mappings ⇒ Object
12 13 14 |
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 12 def audio_details_base_mappings [['art', Types::Media::MediaArtwork]] + media_details_base_mappings end |