Class: EbookLibrary::Factory::Epub
- Inherits:
-
Object
- Object
- EbookLibrary::Factory::Epub
- Defined in:
- lib/ebook_library/factory/epub.rb
Instance Attribute Summary collapse
-
#metadata ⇒ Object
readonly
Returns the value of attribute metadata.
Instance Method Summary collapse
- #author ⇒ Object
-
#initialize(metadata) ⇒ Epub
constructor
A new instance of Epub.
- #title ⇒ Object
Constructor Details
#initialize(metadata) ⇒ Epub
Returns a new instance of Epub.
5 6 7 |
# File 'lib/ebook_library/factory/epub.rb', line 5 def initialize() = end |
Instance Attribute Details
#metadata ⇒ Object (readonly)
Returns the value of attribute metadata.
4 5 6 |
# File 'lib/ebook_library/factory/epub.rb', line 4 def end |
Instance Method Details
#author ⇒ Object
9 10 11 |
# File 'lib/ebook_library/factory/epub.rb', line 9 def .creators.map(&:content).join(" ") end |
#title ⇒ Object
13 14 15 |
# File 'lib/ebook_library/factory/epub.rb', line 13 def title .title || .titles end |