Module: KodiClient::Types::Video::VideoDetailsMedia

Includes:
VideoDetailsBase
Included in:
VideoDetailsItem
Defined in:
lib/kodi_client/types/video/video_details_media_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from VideoDetailsBase

#art, #play_count

Attributes included from Media::MediaDetailsBase

#fan_art, #thumbnail

Attributes included from Items::ItemDetailsBase

#label

Instance Method Summary collapse

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

#titleObject (readonly)

Returns the value of attribute title.



10
11
12
# File 'lib/kodi_client/types/video/video_details_media_type.rb', line 10

def title
  @title
end

Instance Method Details

#video_details_media(title, art, play_count, fan_art, thumbnail, label) ⇒ Object



21
22
23
24
# File 'lib/kodi_client/types/video/video_details_media_type.rb', line 21

def video_details_media(title, art, play_count, fan_art, thumbnail, label)
  @title = title
  video_details_base(art, play_count, fan_art, thumbnail, label)
end

#video_details_media_by_hash(hash) ⇒ Object



16
17
18
19
# File 'lib/kodi_client/types/video/video_details_media_type.rb', line 16

def video_details_media_by_hash(hash)
  video_details_media(*Extensions::Creatable.hash_to_arr(hash, %w[title art play_count fan_art thumbnail label]),
                      video_details_base_mappings)
end

#video_details_media_mappingsObject



12
13
14
# File 'lib/kodi_client/types/video/video_details_media_type.rb', line 12

def video_details_media_mappings
  video_details_base_mappings
end