Class: Chapter

Inherits:
Struct
  • Object
show all
Includes:
Comparable
Defined in:
lib/gst-kitchen/chapter.rb

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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

#startObject

Returns the value of attribute start

Returns:

  • (Object)

    the current value of start



1
2
3
# File 'lib/gst-kitchen/chapter.rb', line 1

def start
  @start
end

#titleObject

Returns the value of attribute title

Returns:

  • (Object)

    the current value of 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.meta
end

Instance Method Details

#<=>(other) ⇒ Object



12
13
14
# File 'lib/gst-kitchen/chapter.rb', line 12

def <=>(other)
  self.start <=> other.start
end