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