Class: KodiClient::Types::Player::Subtitle

Inherits:
Object
  • Object
show all
Extended by:
Extensions::Creatable
Includes:
Extensions::Comparable
Defined in:
lib/kodi_client/types/player/subtitle_type.rb

Overview

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#==, #compare

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

#indexObject (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_defaultObject (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_forcedObject (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_impairedObject (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

#languageObject (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

#nameObject (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