Class: KodiClient::Types::Player::Subtitle
- Inherits:
-
Object
- Object
- KodiClient::Types::Player::Subtitle
- Extended by:
- Extensions::Creatable
- Includes:
- Extensions::Comparable
- Defined in:
- lib/kodi_client/types/player/subtitle_type.rb
Overview
Player Subtitle kodi.wiki/view/JSON-RPC_API/v12#Player.Subtitle
Instance Attribute Summary collapse
-
#index ⇒ Object
readonly
Returns the value of attribute index.
-
#is_default ⇒ Object
readonly
Returns the value of attribute is_default.
-
#is_forced ⇒ Object
readonly
Returns the value of attribute is_forced.
-
#is_impaired ⇒ Object
readonly
Returns the value of attribute is_impaired.
-
#language ⇒ Object
readonly
Returns the value of attribute language.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
Instance Method Summary collapse
-
#initialize(index, is_default, is_forced, is_impaired, language, name) ⇒ Subtitle
constructor
A new instance of Subtitle.
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(index, is_default, is_forced, is_impaired, language, name) ⇒ Subtitle
Returns a new instance of Subtitle.
13 14 15 16 17 18 19 20 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 13 def initialize(index, is_default, is_forced, is_impaired, language, name) @index = index @is_default = is_default @is_forced = is_forced @is_impaired = is_impaired @language = language @name = name end |
Instance Attribute Details
#index ⇒ Object (readonly)
Returns the value of attribute index.
11 12 13 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 11 def index @index end |
#is_default ⇒ Object (readonly)
Returns the value of attribute is_default.
11 12 13 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 11 def is_default @is_default end |
#is_forced ⇒ Object (readonly)
Returns the value of attribute is_forced.
11 12 13 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 11 def is_forced @is_forced end |
#is_impaired ⇒ Object (readonly)
Returns the value of attribute is_impaired.
11 12 13 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 11 def is_impaired @is_impaired end |
#language ⇒ Object (readonly)
Returns the value of attribute language.
11 12 13 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 11 def language @language end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
11 12 13 |
# File 'lib/kodi_client/types/player/subtitle_type.rb', line 11 def name @name end |