Class: KodiClient::Types::Global::IdName
- Inherits:
-
Object
- Object
- KodiClient::Types::Global::IdName
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/global/id_name_type.rb
Overview
id/name type
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(id, name) ⇒ IdName
constructor
A new instance of IdName.
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(id, name) ⇒ IdName
Returns a new instance of IdName.
13 14 15 16 |
# File 'lib/kodi_client/types/global/id_name_type.rb', line 13 def initialize(id, name) @id = id @name = name end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
11 12 13 |
# File 'lib/kodi_client/types/global/id_name_type.rb', line 11 def id @id end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/kodi_client/types/global/id_name_type.rb', line 11 def name @name end |