Class: KodiClient::Types::Audio::AudioArtistRole
- Inherits:
-
Object
- Object
- KodiClient::Types::Audio::AudioArtistRole
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/audio/audio_artist_role_type.rb
Overview
Audio.Artist.Roles kodi.wiki/view/JSON-RPC_API/v12#Audio.Artist.Roles
Instance Attribute Summary collapse
-
#role ⇒ Object
readonly
Returns the value of attribute role.
-
#role_id ⇒ Object
readonly
Returns the value of attribute role_id.
Instance Method Summary collapse
-
#initialize(role, role_id) ⇒ AudioArtistRole
constructor
A new instance of AudioArtistRole.
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
Constructor Details
#initialize(role, role_id) ⇒ AudioArtistRole
Returns a new instance of AudioArtistRole.
14 15 16 17 |
# File 'lib/kodi_client/types/audio/audio_artist_role_type.rb', line 14 def initialize(role, role_id) @role = role @role_id = role_id end |
Instance Attribute Details
#role ⇒ Object (readonly)
Returns the value of attribute role.
12 13 14 |
# File 'lib/kodi_client/types/audio/audio_artist_role_type.rb', line 12 def role @role end |
#role_id ⇒ Object (readonly)
Returns the value of attribute role_id.
12 13 14 |
# File 'lib/kodi_client/types/audio/audio_artist_role_type.rb', line 12 def role_id @role_id end |