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
3774 3775 3776 |
# File 'lib/xberg/native.rb', line 3774 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3827 3828 3829 |
# File 'lib/xberg/native.rb', line 3827 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3793 |
# File 'lib/xberg/native.rb', line 3793 def archive? = false |
#audio? ⇒ Boolean
3821 |
# File 'lib/xberg/native.rb', line 3821 def audio? = false |
#bibtex? ⇒ Boolean
3807 |
# File 'lib/xberg/native.rb', line 3807 def bibtex? = false |
#citation? ⇒ Boolean
3809 |
# File 'lib/xberg/native.rb', line 3809 def citation? = false |
#code? ⇒ Boolean
3823 3824 3825 |
# File 'lib/xberg/native.rb', line 3823 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3805 |
# File 'lib/xberg/native.rb', line 3805 def csv? = false |
#dbf? ⇒ Boolean
3813 |
# File 'lib/xberg/native.rb', line 3813 def dbf? = false |
#docx? ⇒ Boolean
3785 |
# File 'lib/xberg/native.rb', line 3785 def docx? = false |
#email? ⇒ Boolean
3789 |
# File 'lib/xberg/native.rb', line 3789 def email? = false |
#epub? ⇒ Boolean
3817 |
# File 'lib/xberg/native.rb', line 3817 def epub? = true |
#excel? ⇒ Boolean
3787 |
# File 'lib/xberg/native.rb', line 3787 def excel? = false |
#fiction_book? ⇒ Boolean
3811 |
# File 'lib/xberg/native.rb', line 3811 def fiction_book? = false |
#html? ⇒ Boolean
3801 |
# File 'lib/xberg/native.rb', line 3801 def html? = false |
#image? ⇒ Boolean
3795 |
# File 'lib/xberg/native.rb', line 3795 def image? = false |
#jats? ⇒ Boolean
3815 |
# File 'lib/xberg/native.rb', line 3815 def jats? = false |
#ocr? ⇒ Boolean
3803 |
# File 'lib/xberg/native.rb', line 3803 def ocr? = false |
#pdf? ⇒ Boolean
3783 |
# File 'lib/xberg/native.rb', line 3783 def pdf? = false |
#pptx? ⇒ Boolean
3791 |
# File 'lib/xberg/native.rb', line 3791 def pptx? = false |
#pst? ⇒ Boolean
3819 |
# File 'lib/xberg/native.rb', line 3819 def pst? = false |
#text? ⇒ Boolean
3799 |
# File 'lib/xberg/native.rb', line 3799 def text? = false |
#xml? ⇒ Boolean
3797 |
# File 'lib/xberg/native.rb', line 3797 def xml? = false |