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