Class: MkvToolNix::Types::Info::Subtitle
- Inherits:
-
Object
- Object
- MkvToolNix::Types::Info::Subtitle
- Defined in:
- lib/mkvtoolnix/types/info/subtitle.rb
Instance Attribute Summary collapse
-
#codec ⇒ Object
Returns the value of attribute codec.
-
#codec_id ⇒ Object
Returns the value of attribute codec_id.
-
#codec_inherent_delay ⇒ Object
Returns the value of attribute codec_inherent_delay.
-
#codec_name ⇒ Object
Returns the value of attribute codec_name.
-
#encoding ⇒ Object
Returns the value of attribute encoding.
-
#id ⇒ Object
Returns the value of attribute id.
-
#is_commentary ⇒ Object
Returns the value of attribute is_commentary.
-
#is_default ⇒ Object
Returns the value of attribute is_default.
-
#is_enabled ⇒ Object
Returns the value of attribute is_enabled.
-
#is_forced ⇒ Object
Returns the value of attribute is_forced.
-
#is_hearing_impaired ⇒ Object
Returns the value of attribute is_hearing_impaired.
-
#is_original ⇒ Object
Returns the value of attribute is_original.
-
#is_text ⇒ Object
Returns the value of attribute is_text.
-
#is_text_descriptions ⇒ Object
Returns the value of attribute is_text_descriptions.
-
#is_visual_impaired ⇒ Object
Returns the value of attribute is_visual_impaired.
-
#language ⇒ Object
Returns the value of attribute language.
-
#language_ietf ⇒ Object
Returns the value of attribute language_ietf.
-
#name ⇒ Object
Returns the value of attribute name.
-
#track_number ⇒ Object
Returns the value of attribute track_number.
-
#uid ⇒ Object
Returns the value of attribute uid.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(id:, uid:, name:, codec:, codec_id:, codec_name:, codec_inherent_delay:, encoding:, is_default:, is_enabled:, is_commentary:, is_hearing_impaired:, is_original:, is_text_descriptions:, is_visual_impaired:, is_forced:, language:, language_ietf:, is_text:, track_number:) ⇒ Subtitle
constructor
A new instance of Subtitle.
Constructor Details
#initialize(id:, uid:, name:, codec:, codec_id:, codec_name:, codec_inherent_delay:, encoding:, is_default:, is_enabled:, is_commentary:, is_hearing_impaired:, is_original:, is_text_descriptions:, is_visual_impaired:, is_forced:, language:, language_ietf:, is_text:, track_number:) ⇒ Subtitle
Returns a new instance of Subtitle.
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 24 def initialize(id:, uid:, name:, codec:, codec_id:, codec_name:, codec_inherent_delay:, encoding:, is_default:, is_enabled:, is_commentary:, is_hearing_impaired:, is_original:, is_text_descriptions:, is_visual_impaired:, is_forced:, language:, language_ietf:, is_text:, track_number:) @id = id @uid = uid @name = name @codec = codec @codec_id = codec_id @codec_name = codec_name @codec_inherent_delay = codec_inherent_delay @encoding = encoding @is_default = is_default @is_enabled = is_enabled @is_commentary = is_commentary @is_hearing_impaired = is_hearing_impaired @is_original = is_original @is_text_descriptions = is_text_descriptions @is_visual_impaired = is_visual_impaired @is_forced = is_forced @language = language @language_ietf = language_ietf @is_text = is_text @track_number = track_number end |
Instance Attribute Details
#codec ⇒ Object
Returns the value of attribute codec.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def codec @codec end |
#codec_id ⇒ Object
Returns the value of attribute codec_id.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def codec_id @codec_id end |
#codec_inherent_delay ⇒ Object
Returns the value of attribute codec_inherent_delay.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def codec_inherent_delay @codec_inherent_delay end |
#codec_name ⇒ Object
Returns the value of attribute codec_name.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def codec_name @codec_name end |
#encoding ⇒ Object
Returns the value of attribute encoding.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def encoding @encoding end |
#id ⇒ Object
Returns the value of attribute id.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def id @id end |
#is_commentary ⇒ Object
Returns the value of attribute is_commentary.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_commentary @is_commentary end |
#is_default ⇒ Object
Returns the value of attribute is_default.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_default @is_default end |
#is_enabled ⇒ Object
Returns the value of attribute is_enabled.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_enabled @is_enabled end |
#is_forced ⇒ Object
Returns the value of attribute is_forced.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_forced @is_forced end |
#is_hearing_impaired ⇒ Object
Returns the value of attribute is_hearing_impaired.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_hearing_impaired @is_hearing_impaired end |
#is_original ⇒ Object
Returns the value of attribute is_original.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_original @is_original end |
#is_text ⇒ Object
Returns the value of attribute is_text.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_text @is_text end |
#is_text_descriptions ⇒ Object
Returns the value of attribute is_text_descriptions.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_text_descriptions @is_text_descriptions end |
#is_visual_impaired ⇒ Object
Returns the value of attribute is_visual_impaired.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def is_visual_impaired @is_visual_impaired end |
#language ⇒ Object
Returns the value of attribute language.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def language @language end |
#language_ietf ⇒ Object
Returns the value of attribute language_ietf.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def language_ietf @language_ietf end |
#name ⇒ Object
Returns the value of attribute name.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def name @name end |
#track_number ⇒ Object
Returns the value of attribute track_number.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def track_number @track_number end |
#uid ⇒ Object
Returns the value of attribute uid.
8 9 10 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 8 def uid @uid end |
Class Method Details
.create(hash) ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/mkvtoolnix/types/info/subtitle.rb', line 12 def self.create(hash) props = hash['properties'] new(id: hash['id'], uid: props['uid'], name: props['track_name'], codec: hash['codec'], codec_id: props['codec_id'], codec_name: props['codec_name'], codec_inherent_delay: props['codec_delay'], encoding: props['encoding'], is_default: props['default_track'], is_enabled: props['enabled_track'], is_commentary: props['flag_commentary'], is_hearing_impaired: props['flag_hearing_impaired'], is_original: props['flag_original'], is_text_descriptions: props['flag_text_descriptions'], is_visual_impaired: props['flag_visual_impaired'], is_forced: props['forced_track'], language: props['language'], language_ietf: props['language_ietf'], is_text: props['text_subtitles'], track_number: props['number']) end |