Class: KodiClient::Types::Audio::AvailableArt

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

Overview

Instance Attribute Summary collapse

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

Constructor Details

#initialize(art_type, preview_url, url) ⇒ AvailableArt

Returns a new instance of AvailableArt.



13
14
15
16
17
# File 'lib/kodi_client/types/audio/available_art_type.rb', line 13

def initialize(art_type, preview_url, url)
  @art_type = art_type
  @preview_url = preview_url
  @url = url
end

Instance Attribute Details

#art_typeObject (readonly)

Returns the value of attribute art_type.



11
12
13
# File 'lib/kodi_client/types/audio/available_art_type.rb', line 11

def art_type
  @art_type
end

#preview_urlObject (readonly)

Returns the value of attribute preview_url.



11
12
13
# File 'lib/kodi_client/types/audio/available_art_type.rb', line 11

def preview_url
  @preview_url
end

#urlObject (readonly)

Returns the value of attribute url.



11
12
13
# File 'lib/kodi_client/types/audio/available_art_type.rb', line 11

def url
  @url
end