Class: DVDConverter::Subtitle

Inherits:
Object
  • Object
show all
Defined in:
lib/dvd_converter/subtitle.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(id, hex, language, code) ⇒ Subtitle

Returns a new instance of Subtitle.



9
10
11
12
13
14
# File 'lib/dvd_converter/subtitle.rb', line 9

def initialize(id, hex, language, code)
  @track_id = id
  @hex = hex
  @language = language
  @code = code
end

Instance Attribute Details

#codeObject

Returns the value of attribute code.



4
5
6
# File 'lib/dvd_converter/subtitle.rb', line 4

def code
  @code
end

#hexObject

Returns the value of attribute hex.



6
7
8
# File 'lib/dvd_converter/subtitle.rb', line 6

def hex
  @hex
end

#languageObject

Returns the value of attribute language.



7
8
9
# File 'lib/dvd_converter/subtitle.rb', line 7

def language
  @language
end

#track_idObject

Returns the value of attribute track_id.



5
6
7
# File 'lib/dvd_converter/subtitle.rb', line 5

def track_id
  @track_id
end

Instance Method Details



16
17
18
19
20
21
# File 'lib/dvd_converter/subtitle.rb', line 16

def print_description
  print "+ Subtitle Track #{@track_id}: "
  print "#{@hex} - "
  print "#{@language} - "
  print "#{@code}\n"
end