Module: KodiClient::Types::Video::VideoDetailsItem

Includes:
VideoDetailsMedia
Included in:
VideoDetailsFile
Defined in:
lib/kodi_client/types/video/video_details_item_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from VideoDetailsMedia

#title

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 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_addedObject (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

#fileObject (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_playedObject (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

#plotObject (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_mappingsObject



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