Module: KodiClient::Types::Video::VideoDetailsItem
- Includes:
- VideoDetailsMedia
- Included in:
- VideoDetailsFile
- Defined in:
- lib/kodi_client/types/video/video_details_item_type.rb
Overview
Video.Details.Item kodi.wiki/view/JSON-RPC_API/v12#Video.Details.Item
Instance Attribute Summary collapse
-
#date_added ⇒ Object
readonly
Returns the value of attribute date_added.
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#last_played ⇒ Object
readonly
Returns the value of attribute last_played.
-
#plot ⇒ Object
readonly
Returns the value of attribute plot.
Attributes included from VideoDetailsMedia
Attributes included from VideoDetailsBase
Attributes included from Media::MediaDetailsBase
Attributes included from Items::ItemDetailsBase
Instance Method Summary collapse
- #video_details_item(date_added, file, last_played, plot, title, art, play_count, fan_art, thumbnail, label) ⇒ Object
- #video_details_item_by_hash(hash) ⇒ Object
- #video_details_item_mappings ⇒ Object
Methods included from VideoDetailsMedia
#video_details_media, #video_details_media_by_hash, #video_details_media_mappings
Methods included from VideoDetailsBase
#video_details_base, #video_details_base_by_hash, #video_details_base_mappings
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
#date_added ⇒ Object (readonly)
Returns the value of attribute date_added.
10 11 12 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 10 def date_added @date_added end |
#file ⇒ Object (readonly)
Returns the value of attribute file.
10 11 12 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 10 def file @file end |
#last_played ⇒ Object (readonly)
Returns the value of attribute last_played.
10 11 12 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 10 def last_played @last_played end |
#plot ⇒ Object (readonly)
Returns the value of attribute plot.
10 11 12 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 10 def plot @plot end |
Instance Method Details
#video_details_item(date_added, file, last_played, plot, title, art, play_count, fan_art, thumbnail, label) ⇒ Object
22 23 24 25 26 27 28 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 22 def video_details_item(date_added, file, last_played, plot, title, art, play_count, fan_art, thumbnail, label) @date_added = date_added @file = file @last_played = last_played @plot = plot video_details_media(title, art, play_count, fan_art, thumbnail, label) end |
#video_details_item_by_hash(hash) ⇒ Object
16 17 18 19 20 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 16 def video_details_item_by_hash(hash) video_details_item(*Extensions::Creatable.hash_to_arr(hash, %w[date_added file last_played plot title art play_count fan_art thumbnail label], video_details_item_mappings)) end |
#video_details_item_mappings ⇒ Object
12 13 14 |
# File 'lib/kodi_client/types/video/video_details_item_type.rb', line 12 def video_details_item_mappings video_details_media_mappings end |