Class: AudioBookCreator::Binder
- Inherits:
-
Object
- Object
- AudioBookCreator::Binder
- Defined in:
- lib/audio_book_creator/binder.rb
Instance Attribute Summary collapse
-
#book_def ⇒ Object
Returns the value of attribute book_def.
-
#speaker_def ⇒ Object
Returns the value of attribute speaker_def.
Instance Method Summary collapse
- #create(chapters) ⇒ Object
-
#initialize(book_def, speaker_def) ⇒ Binder
constructor
these are more for documentation than actual variables.
Constructor Details
#initialize(book_def, speaker_def) ⇒ Binder
these are more for documentation than actual variables
8 9 10 11 |
# File 'lib/audio_book_creator/binder.rb', line 8 def initialize(book_def, speaker_def) @book_def = book_def @speaker_def = speaker_def end |
Instance Attribute Details
#book_def ⇒ Object
Returns the value of attribute book_def.
3 4 5 |
# File 'lib/audio_book_creator/binder.rb', line 3 def book_def @book_def end |
#speaker_def ⇒ Object
Returns the value of attribute speaker_def.
4 5 6 |
# File 'lib/audio_book_creator/binder.rb', line 4 def speaker_def @speaker_def end |
Instance Method Details
#create(chapters) ⇒ Object
13 14 15 16 17 18 19 |
# File 'lib/audio_book_creator/binder.rb', line 13 def create(chapters) raise "No Chapters" if chapters.nil? || chapters.empty? AudioBookCreator.optionally_run(book_def.filename, force) do ["abbinder", params: params(chapters)] end end |