Class: Chapter
- Inherits:
-
Struct
- Object
- Struct
- Chapter
- Includes:
- Comparable
- Defined in:
- lib/gst-kitchen/chapter.rb
Instance Attribute Summary collapse
-
#start ⇒ Object
Returns the value of attribute start.
-
#title ⇒ Object
Returns the value of attribute title.
Class Method Summary collapse
Instance Method Summary collapse
- #<=>(other) ⇒ Object
-
#initialize(*args) ⇒ Chapter
constructor
A new instance of Chapter.
Constructor Details
#initialize(*args) ⇒ Chapter
Returns a new instance of Chapter.
4 5 6 |
# File 'lib/gst-kitchen/chapter.rb', line 4 def initialize(*args) super end |
Instance Attribute Details
#start ⇒ Object
Returns the value of attribute start
1 2 3 |
# File 'lib/gst-kitchen/chapter.rb', line 1 def start @start end |
#title ⇒ Object
Returns the value of attribute title
1 2 3 |
# File 'lib/gst-kitchen/chapter.rb', line 1 def title @title end |
Class Method Details
.from_auphonic(production) ⇒ Object
8 9 10 |
# File 'lib/gst-kitchen/chapter.rb', line 8 def self.from_auphonic(production) chapters = production. end |
Instance Method Details
#<=>(other) ⇒ Object
12 13 14 |
# File 'lib/gst-kitchen/chapter.rb', line 12 def <=>(other) self.start <=> other.start end |