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