Module: KodiClient::Types::Video::VideoDetailsBase
- Includes:
- Media::MediaDetailsBase
- Included in:
- VideoDetailsMedia
- Defined in:
- lib/kodi_client/types/video/video_details_base_type.rb
Overview
Video.Details.Base kodi.wiki/view/JSON-RPC_API/v12#Video.Details.Base
Instance Attribute Summary collapse
-
#art ⇒ Object
readonly
Returns the value of attribute art.
-
#play_count ⇒ Object
readonly
Returns the value of attribute play_count.
Attributes included from Media::MediaDetailsBase
Attributes included from Items::ItemDetailsBase
Instance Method Summary collapse
- #video_details_base(art, play_count, fan_art, thumbnail, label) ⇒ Object
- #video_details_base_by_hash(hash) ⇒ Object
- #video_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/video/video_details_base_type.rb', line 10 def art @art end |
#play_count ⇒ Object (readonly)
Returns the value of attribute play_count.
10 11 12 |
# File 'lib/kodi_client/types/video/video_details_base_type.rb', line 10 def play_count @play_count end |
Instance Method Details
#video_details_base(art, play_count, fan_art, thumbnail, label) ⇒ Object
21 22 23 24 25 |
# File 'lib/kodi_client/types/video/video_details_base_type.rb', line 21 def video_details_base(art, play_count, fan_art, thumbnail, label) @art = art @play_count = play_count media_details_base(fan_art, thumbnail, label) end |
#video_details_base_by_hash(hash) ⇒ Object
16 17 18 19 |
# File 'lib/kodi_client/types/video/video_details_base_type.rb', line 16 def video_details_base_by_hash(hash) video_details_base(*Extensions::Creatable.hash_to_arr(hash, %w[art play_count fan_art thumbnail label], video_details_base_mappings)) end |
#video_details_base_mappings ⇒ Object
12 13 14 |
# File 'lib/kodi_client/types/video/video_details_base_type.rb', line 12 def video_details_base_mappings media_details_base_mappings end |