Module: KodiClient::Types::Audio::AudioDetailsBase

Includes:
Media::MediaDetailsBase
Included in:
AudioDetailsArtist, AudioDetailsMedia
Defined in:
lib/kodi_client/types/audio/audio_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/audio/audio_details_base_type.rb', line 10

def art
  @art
end

#date_addedObject (readonly)

Returns the value of attribute date_added.



10
11
12
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 10

def date_added
  @date_added
end

#genreObject (readonly)

Returns the value of attribute genre.



10
11
12
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 10

def genre
  @genre
end

Instance Method Details

#audio_details_base(art, date_added, genre, fan_art, thumbnail, label) ⇒ Object



21
22
23
24
25
26
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 21

def audio_details_base(art, date_added, genre, fan_art, thumbnail, label)
  @art = art
  @date_added = date_added
  @genre = genre
  media_details_base(fan_art, thumbnail, label)
end

#audio_details_base_by_hash(hash) ⇒ Object



16
17
18
19
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 16

def audio_details_base_by_hash(hash)
  audio_details_base(*Extensions::Creatable.hash_to_arr(hash, %w[art date_added genre fan_art thumbnail label]),
                     audio_details_base_mappings)
end

#audio_details_base_mappingsObject



12
13
14
# File 'lib/kodi_client/types/audio/audio_details_base_type.rb', line 12

def audio_details_base_mappings
  [['art', Types::Media::MediaArtwork]] + media_details_base_mappings
end