Module: KodiClient::Types::Video::VideoDetailsBase

Includes:
Media::MediaDetailsBase
Included in:
VideoDetailsMedia
Defined in:
lib/kodi_client/types/video/video_details_base_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from Media::MediaDetailsBase

#fan_art, #thumbnail

Attributes included from Items::ItemDetailsBase

#label

Instance Method Summary collapse

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

#artObject (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_countObject (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_mappingsObject



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