Class: SubtitleParser::Subtitle
- Inherits:
-
Object
- Object
- SubtitleParser::Subtitle
- Defined in:
- lib/subtitle_parser.rb
Instance Attribute Summary collapse
-
#begins ⇒ Object
readonly
Returns the value of attribute begins.
-
#ends ⇒ Object
readonly
Returns the value of attribute ends.
-
#order ⇒ Object
readonly
Returns the value of attribute order.
-
#sentence ⇒ Object
readonly
Returns the value of attribute sentence.
Instance Method Summary collapse
-
#initialize(order, begins, ends, sentence) ⇒ Subtitle
constructor
A new instance of Subtitle.
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
#begins ⇒ Object (readonly)
Returns the value of attribute begins.
15 16 17 |
# File 'lib/subtitle_parser.rb', line 15 def begins @begins end |
#ends ⇒ Object (readonly)
Returns the value of attribute ends.
15 16 17 |
# File 'lib/subtitle_parser.rb', line 15 def ends @ends end |
#order ⇒ Object (readonly)
Returns the value of attribute order.
15 16 17 |
# File 'lib/subtitle_parser.rb', line 15 def order @order end |
#sentence ⇒ Object (readonly)
Returns the value of attribute sentence.
15 16 17 |
# File 'lib/subtitle_parser.rb', line 15 def sentence @sentence end |