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