Module: KodiClient::Types::Media::MediaDetailsBase

Includes:
Items::ItemDetailsBase
Included in:
Audio::AudioDetailsBase, Video::VideoDetailsBase
Defined in:
lib/kodi_client/types/media/media_details_base_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from Items::ItemDetailsBase

#label

Instance Method Summary collapse

Methods included from Items::ItemDetailsBase

#item_details_base, #item_details_base_by_hash, #item_details_base_mappings

Instance Attribute Details

#fan_artObject (readonly)

Returns the value of attribute fan_art.



10
11
12
# File 'lib/kodi_client/types/media/media_details_base_type.rb', line 10

def fan_art
  @fan_art
end

#thumbnailObject (readonly)

Returns the value of attribute thumbnail.



10
11
12
# File 'lib/kodi_client/types/media/media_details_base_type.rb', line 10

def thumbnail
  @thumbnail
end

Instance Method Details

#media_details_base(fan_art, thumbnail, label) ⇒ Object



21
22
23
24
25
# File 'lib/kodi_client/types/media/media_details_base_type.rb', line 21

def media_details_base(fan_art, thumbnail, label)
  @fan_art = fan_art
  @thumbnail = thumbnail
  item_details_base(label)
end

#media_details_base_by_hash(hash) ⇒ Object



16
17
18
19
# File 'lib/kodi_client/types/media/media_details_base_type.rb', line 16

def media_details_base_by_hash(hash)
  media_details_base(*Extensions::Creatable.hash_to_arr(hash, %w[fan_art thumbnail label]),
                     media_details_base_mappings)
end

#media_details_base_mappingsObject



12
13
14
# File 'lib/kodi_client/types/media/media_details_base_type.rb', line 12

def media_details_base_mappings
  item_details_base_mappings
end