Module: KodiClient::Types::Video::VideoDetailsFile

Includes:
VideoDetailsItem
Included in:
List::ListItemBase
Defined in:
lib/kodi_client/types/video/video_details_file_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from VideoDetailsItem

#date_added, #file, #last_played, #plot

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 VideoDetailsItem

#video_details_item, #video_details_item_by_hash, #video_details_item_mappings

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

#directorObject (readonly)

Returns the value of attribute director.



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

def director
  @director
end

#resumeObject (readonly)

Returns the value of attribute resume.



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

def resume
  @resume
end

#runtimeObject (readonly)

Returns the value of attribute runtime.



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

def runtime
  @runtime
end

#stream_detailsObject (readonly)

Returns the value of attribute stream_details.



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

def stream_details
  @stream_details
end

Instance Method Details

#video_details_file(director, resume, runtime, stream_details, date_added, file, last_played, plot, title, art, play_count, fan_art, thumbnail, label) ⇒ Object



26
27
28
29
30
31
32
33
# File 'lib/kodi_client/types/video/video_details_file_type.rb', line 26

def video_details_file(director, resume, runtime, stream_details, date_added, file, last_played, plot, title,
                       art, play_count, fan_art, thumbnail, label)
  @director = director
  @resume = resume
  @runtime = runtime
  @stream_details = stream_details
  video_details_item(date_added, file, last_played, plot, title, art, play_count, fan_art, thumbnail, label)
end

#video_details_file_by_hash(hash) ⇒ Object



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

def video_details_file_by_hash(hash)
  video_details_file(*Extensions::Creatable.hash_to_arr(hash, %w[director resume runtime stream_details 
                                                                 date_added file last_played plot title art 
                                                                 play_count fan_art thumbnail label],
                                                        video_details_file_mappings))
end

#video_details_file_mappingsObject



12
13
14
15
16
17
# File 'lib/kodi_client/types/video/video_details_file_type.rb', line 12

def video_details_file_mappings
  [
    ['resume', VideoResume],
    ['streamdetails', StreamDetails]
  ] + video_details_item_mappings
end