Class: Xberg::FormatMetadataEpub
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataEpub
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from an EPUB e-book.
Instance Attribute Summary collapse
-
#value ⇒ Object
readonly
rubocop:disable Lint/UselessMethodDefinition.
Class Method Summary collapse
Instance Method Summary collapse
- #archive? ⇒ Boolean
- #audio? ⇒ Boolean
- #bibtex? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #csv? ⇒ Boolean
- #dbf? ⇒ Boolean
- #docx? ⇒ Boolean
- #email? ⇒ Boolean
- #epub? ⇒ Boolean
- #excel? ⇒ Boolean
- #fiction_book? ⇒ Boolean
- #html? ⇒ Boolean
- #image? ⇒ Boolean
- #jats? ⇒ Boolean
- #ocr? ⇒ Boolean
- #pdf? ⇒ Boolean
- #pptx? ⇒ Boolean
- #pst? ⇒ Boolean
- #text? ⇒ Boolean
- #xml? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
rubocop:disable Lint/UselessMethodDefinition
3537 3538 3539 |
# File 'lib/xberg/native.rb', line 3537 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3590 3591 3592 |
# File 'lib/xberg/native.rb', line 3590 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3556 |
# File 'lib/xberg/native.rb', line 3556 def archive? = false |
#audio? ⇒ Boolean
3584 |
# File 'lib/xberg/native.rb', line 3584 def audio? = false |
#bibtex? ⇒ Boolean
3570 |
# File 'lib/xberg/native.rb', line 3570 def bibtex? = false |
#citation? ⇒ Boolean
3572 |
# File 'lib/xberg/native.rb', line 3572 def citation? = false |
#code? ⇒ Boolean
3586 3587 3588 |
# File 'lib/xberg/native.rb', line 3586 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3568 |
# File 'lib/xberg/native.rb', line 3568 def csv? = false |
#dbf? ⇒ Boolean
3576 |
# File 'lib/xberg/native.rb', line 3576 def dbf? = false |
#docx? ⇒ Boolean
3548 |
# File 'lib/xberg/native.rb', line 3548 def docx? = false |
#email? ⇒ Boolean
3552 |
# File 'lib/xberg/native.rb', line 3552 def email? = false |
#epub? ⇒ Boolean
3580 |
# File 'lib/xberg/native.rb', line 3580 def epub? = true |
#excel? ⇒ Boolean
3550 |
# File 'lib/xberg/native.rb', line 3550 def excel? = false |
#fiction_book? ⇒ Boolean
3574 |
# File 'lib/xberg/native.rb', line 3574 def fiction_book? = false |
#html? ⇒ Boolean
3564 |
# File 'lib/xberg/native.rb', line 3564 def html? = false |
#image? ⇒ Boolean
3558 |
# File 'lib/xberg/native.rb', line 3558 def image? = false |
#jats? ⇒ Boolean
3578 |
# File 'lib/xberg/native.rb', line 3578 def jats? = false |
#ocr? ⇒ Boolean
3566 |
# File 'lib/xberg/native.rb', line 3566 def ocr? = false |
#pdf? ⇒ Boolean
3546 |
# File 'lib/xberg/native.rb', line 3546 def pdf? = false |
#pptx? ⇒ Boolean
3554 |
# File 'lib/xberg/native.rb', line 3554 def pptx? = false |
#pst? ⇒ Boolean
3582 |
# File 'lib/xberg/native.rb', line 3582 def pst? = false |
#text? ⇒ Boolean
3562 |
# File 'lib/xberg/native.rb', line 3562 def text? = false |
#xml? ⇒ Boolean
3560 |
# File 'lib/xberg/native.rb', line 3560 def xml? = false |