Class: KodiClient::Types::Audio::AudioDetailsSong

Inherits:
Object
  • Object
show all
Extended by:
Extensions::Creatable
Includes:
Extensions::Comparable, AudioDetailsMedia
Defined in:
lib/kodi_client/types/audio/audio_details_song_type.rb

Overview

Instance Attribute Summary collapse

Attributes included from AudioDetailsMedia

#artist, #artist_id, #display_artist, #musicbrainz_album_artist_id, #original_date, #rating, #release_date, #sort_artist, #title, #user_rating, #votes, #year

Attributes included from AudioDetailsBase

#art, #date_added, #genre

Attributes included from Media::MediaDetailsBase

#fan_art, #thumbnail

Attributes included from Items::ItemDetailsBase

#label

Instance Method Summary collapse

Methods included from Extensions::Creatable

arr_to_mapping, attr_accessor, attr_reader, attr_writer, create, create_list, extract_field_from_hash, fields_to_map, hash_to_arr, type_mapping

Methods included from Extensions::Comparable

#==, #compare

Methods included from AudioDetailsMedia

#audio_details_media, #audio_details_media_by_hash, #audio_details_media_mappings, included

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

Constructor Details

#initialize(album, album_artist, album_artist_id, album_id, album_release_type, bitrate, bpm, channels, comment, contributors, disc, disc_title, display_composer, display_conductor, display_lyricist, display_orchestra, duration, file, genre_id, last_played, lyrics, mood, musicbrainz_artist_id, musicbrainz_track_id, play_count, sample_rate, song_id, source_id, track, 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) ⇒ AudioDetailsSong

Returns a new instance of AudioDetailsSong.



28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
# File 'lib/kodi_client/types/audio/audio_details_song_type.rb', line 28

def initialize(album, album_artist, album_artist_id, album_id, album_release_type, bitrate, bpm, channels,
               comment, contributors, disc, disc_title, display_composer, display_conductor, display_lyricist,
               display_orchestra, duration, file, genre_id, last_played, lyrics, mood, musicbrainz_artist_id,
               musicbrainz_track_id, play_count, sample_rate, song_id, source_id, track,
               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)
  @album = album
  @album_artist = album_artist
  @album_artist_id = album_artist_id
  @album_id = album_id
  @album_release_type = album_release_type
  @bitrate = bitrate
  @bpm = bpm
  @channels = channels
  @comment = comment
  @contributors = contributors
  @disc = disc
  @disc_title = disc_title
  @display_composer = display_composer
  @display_conductor = display_conductor
  @display_lyricist = display_lyricist
  @display_orchestra = display_orchestra
  @duration = duration
  @file = file
  @genre_id = genre_id
  @last_played = last_played
  @lyrics = lyrics
  @mood = mood
  @musicbrainz_artist_id = musicbrainz_artist_id
  @musicbrainz_track_id = musicbrainz_track_id
  @play_count = play_count
  @sample_rate = sample_rate
  @song_id = song_id
  @source_id = source_id
  @track = track
  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)
end

Instance Attribute Details

#albumObject (readonly)

Returns the value of attribute album.



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

def album
  @album
end

#album_artistObject (readonly)

Returns the value of attribute album_artist.



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

def album_artist
  @album_artist
end

#album_artist_idObject (readonly)

Returns the value of attribute album_artist_id.



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

def album_artist_id
  @album_artist_id
end

#album_idObject (readonly)

Returns the value of attribute album_id.



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

def album_id
  @album_id
end

#album_release_typeObject (readonly)

Returns the value of attribute album_release_type.



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

def album_release_type
  @album_release_type
end

#bitrateObject (readonly)

Returns the value of attribute bitrate.



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

def bitrate
  @bitrate
end

#bpmObject (readonly)

Returns the value of attribute bpm.



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

def bpm
  @bpm
end

#channelsObject (readonly)

Returns the value of attribute channels.



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

def channels
  @channels
end

#commentObject (readonly)

Returns the value of attribute comment.



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

def comment
  @comment
end

#contributorsObject (readonly)

Returns the value of attribute contributors.



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

def contributors
  @contributors
end

#discObject (readonly)

Returns the value of attribute disc.



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

def disc
  @disc
end

#disc_titleObject (readonly)

Returns the value of attribute disc_title.



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

def disc_title
  @disc_title
end

#display_composerObject (readonly)

Returns the value of attribute display_composer.



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

def display_composer
  @display_composer
end

#display_conductorObject (readonly)

Returns the value of attribute display_conductor.



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

def display_conductor
  @display_conductor
end

#display_lyricistObject (readonly)

Returns the value of attribute display_lyricist.



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

def display_lyricist
  @display_lyricist
end

#display_orchestraObject (readonly)

Returns the value of attribute display_orchestra.



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

def display_orchestra
  @display_orchestra
end

#durationObject (readonly)

Returns the value of attribute duration.



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

def duration
  @duration
end

#fileObject (readonly)

Returns the value of attribute file.



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

def file
  @file
end

#genre_idObject (readonly)

Returns the value of attribute genre_id.



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

def genre_id
  @genre_id
end

#last_playedObject (readonly)

Returns the value of attribute last_played.



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

def last_played
  @last_played
end

#lyricsObject (readonly)

Returns the value of attribute lyrics.



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

def lyrics
  @lyrics
end

#moodObject (readonly)

Returns the value of attribute mood.



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

def mood
  @mood
end

#musicbrainz_artist_idObject (readonly)

Returns the value of attribute musicbrainz_artist_id.



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

def musicbrainz_artist_id
  @musicbrainz_artist_id
end

#musicbrainz_track_idObject (readonly)

Returns the value of attribute musicbrainz_track_id.



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

def musicbrainz_track_id
  @musicbrainz_track_id
end

#play_countObject (readonly)

Returns the value of attribute play_count.



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

def play_count
  @play_count
end

#sample_rateObject (readonly)

Returns the value of attribute sample_rate.



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

def sample_rate
  @sample_rate
end

#song_idObject (readonly)

Returns the value of attribute song_id.



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

def song_id
  @song_id
end

#source_idObject (readonly)

Returns the value of attribute source_id.



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

def source_id
  @source_id
end

#trackObject (readonly)

Returns the value of attribute track.



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

def track
  @track
end