Module: KodiClient::Types::Audio::AudioDetailsMedia

Includes:
AudioDetailsBase
Included in:
AudioDetailsAlbum, AudioDetailsSong, List::ListItemBase
Defined in:
lib/kodi_client/types/audio/audio_details_media_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from AudioDetailsBase

#art, #date_added, #genre

Attributes included from Media::MediaDetailsBase

#fan_art, #thumbnail

Attributes included from Items::ItemDetailsBase

#label

Class Method Summary collapse

Instance Method Summary collapse

Methods included from AudioDetailsBase

#audio_details_base, #audio_details_base_by_hash, #audio_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

#artistObject (readonly)

Returns the value of attribute artist.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def artist
  @artist
end

#artist_idObject (readonly)

Returns the value of attribute artist_id.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def artist_id
  @artist_id
end

#display_artistObject (readonly)

Returns the value of attribute display_artist.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def display_artist
  @display_artist
end

#musicbrainz_album_artist_idObject (readonly)

Returns the value of attribute musicbrainz_album_artist_id.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def musicbrainz_album_artist_id
  @musicbrainz_album_artist_id
end

#original_dateObject (readonly)

Returns the value of attribute original_date.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def original_date
  @original_date
end

#ratingObject (readonly)

Returns the value of attribute rating.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def rating
  @rating
end

#release_dateObject (readonly)

Returns the value of attribute release_date.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def release_date
  @release_date
end

#sort_artistObject (readonly)

Returns the value of attribute sort_artist.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def sort_artist
  @sort_artist
end

#titleObject (readonly)

Returns the value of attribute title.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def title
  @title
end

#user_ratingObject (readonly)

Returns the value of attribute user_rating.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def user_rating
  @user_rating
end

#votesObject (readonly)

Returns the value of attribute votes.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def votes
  @votes
end

#yearObject (readonly)

Returns the value of attribute year.



14
15
16
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 14

def year
  @year
end

Class Method Details

.included(base) ⇒ Object



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

def self.included(base)
  base.extend(self)
end

Instance Method Details

#audio_details_media(artist, artist_id, display_artist, musicbrainz_album_artist_id, original_date, rating, release_date, sort_artist, title, user_rating, votes, year, art, date_added, genre, fan_art, thumbnail, label) ⇒ Object



30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
# File 'lib/kodi_client/types/audio/audio_details_media_type.rb', line 30

def audio_details_media(artist, artist_id, display_artist, musicbrainz_album_artist_id, original_date,
                        rating, release_date, sort_artist, title, user_rating, votes, year,
                        art, date_added, genre, fan_art, thumbnail, label)
  @artist = artist
  @artist_id = artist_id
  @display_artist = display_artist
  @musicbrainz_album_artist_id = musicbrainz_album_artist_id
  @original_date = original_date
  @rating = rating
  @release_date = release_date
  @sort_artist = sort_artist
  @title = title
  @user_rating = user_rating
  @votes = votes
  @year = year
  audio_details_base(art, date_added, genre, fan_art, thumbnail, label)
end

#audio_details_media_by_hash(hash) ⇒ Object



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

def audio_details_media_by_hash(hash)
  audio_details_media(*Extensions::Creatable.hash_to_arr(hash, %w[artist artist_id display_artist
                                                                  musicbrainz_album_artist_id original_date
                                                                  rating release_date sort_artist title
                                                                  user_rating votes year art date_added
                                                                  genre fan_art thumbnail label],
                                                         audio_details_base_mappings))
end

#audio_details_media_mappingsObject



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

def audio_details_media_mappings
  audio_details_base_mappings
end