Class: KodiClient::Types::Library::AudioDetailsSource
- Inherits:
-
Object
- Object
- KodiClient::Types::Library::AudioDetailsSource
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable, Items::ItemDetailsBase
- Defined in:
- lib/kodi_client/types/library/library_details_source_type.rb
Overview
Library.Details.Source kodi.wiki/view/JSON-RPC_API/v12#Library.Details.Source
Instance Attribute Summary collapse
-
#file ⇒ Object
readonly
Returns the value of attribute file.
-
#paths ⇒ Object
readonly
Returns the value of attribute paths.
-
#source_id ⇒ Object
readonly
Returns the value of attribute source_id.
Attributes included from Items::ItemDetailsBase
Instance Method Summary collapse
-
#initialize(file, paths, source_id, label) ⇒ AudioDetailsSource
constructor
A new instance of AudioDetailsSource.
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
Methods included from Items::ItemDetailsBase
#item_details_base, #item_details_base_by_hash, #item_details_base_mappings
Constructor Details
#initialize(file, paths, source_id, label) ⇒ AudioDetailsSource
Returns a new instance of AudioDetailsSource.
16 17 18 19 20 21 |
# File 'lib/kodi_client/types/library/library_details_source_type.rb', line 16 def initialize(file, paths, source_id, label) @file = file @paths = paths @source_id = source_id item_details_base(label) end |
Instance Attribute Details
#file ⇒ Object (readonly)
Returns the value of attribute file.
12 13 14 |
# File 'lib/kodi_client/types/library/library_details_source_type.rb', line 12 def file @file end |
#paths ⇒ Object (readonly)
Returns the value of attribute paths.
12 13 14 |
# File 'lib/kodi_client/types/library/library_details_source_type.rb', line 12 def paths @paths end |
#source_id ⇒ Object (readonly)
Returns the value of attribute source_id.
12 13 14 |
# File 'lib/kodi_client/types/library/library_details_source_type.rb', line 12 def source_id @source_id end |