Class: SubtitleParser::Subtitle

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(order, begins, ends, sentence) ⇒ Subtitle

Returns a new instance of Subtitle.



17
18
19
20
21
22
# File 'lib/subtitle_parser.rb', line 17

def initialize order, begins, ends, sentence
  @order = order.to_i
  @begins = begins
  @ends = ends
  @sentence = sentence
end

Instance Attribute Details

#beginsObject (readonly)

Returns the value of attribute begins.



15
16
17
# File 'lib/subtitle_parser.rb', line 15

def begins
  @begins
end

#endsObject (readonly)

Returns the value of attribute ends.



15
16
17
# File 'lib/subtitle_parser.rb', line 15

def ends
  @ends
end

#orderObject (readonly)

Returns the value of attribute order.



15
16
17
# File 'lib/subtitle_parser.rb', line 15

def order
  @order
end

#sentenceObject (readonly)

Returns the value of attribute sentence.



15
16
17
# File 'lib/subtitle_parser.rb', line 15

def sentence
  @sentence
end