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
3849 3850 3851 |
# File 'lib/xberg/native.rb', line 3849 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3902 3903 3904 |
# File 'lib/xberg/native.rb', line 3902 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3868 |
# File 'lib/xberg/native.rb', line 3868 def archive? = false |
#audio? ⇒ Boolean
3896 |
# File 'lib/xberg/native.rb', line 3896 def audio? = false |
#bibtex? ⇒ Boolean
3882 |
# File 'lib/xberg/native.rb', line 3882 def bibtex? = false |
#citation? ⇒ Boolean
3884 |
# File 'lib/xberg/native.rb', line 3884 def citation? = false |
#code? ⇒ Boolean
3898 3899 3900 |
# File 'lib/xberg/native.rb', line 3898 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3880 |
# File 'lib/xberg/native.rb', line 3880 def csv? = false |
#dbf? ⇒ Boolean
3888 |
# File 'lib/xberg/native.rb', line 3888 def dbf? = false |
#docx? ⇒ Boolean
3860 |
# File 'lib/xberg/native.rb', line 3860 def docx? = false |
#email? ⇒ Boolean
3864 |
# File 'lib/xberg/native.rb', line 3864 def email? = false |
#epub? ⇒ Boolean
3892 |
# File 'lib/xberg/native.rb', line 3892 def epub? = true |
#excel? ⇒ Boolean
3862 |
# File 'lib/xberg/native.rb', line 3862 def excel? = false |
#fiction_book? ⇒ Boolean
3886 |
# File 'lib/xberg/native.rb', line 3886 def fiction_book? = false |
#html? ⇒ Boolean
3876 |
# File 'lib/xberg/native.rb', line 3876 def html? = false |
#image? ⇒ Boolean
3870 |
# File 'lib/xberg/native.rb', line 3870 def image? = false |
#jats? ⇒ Boolean
3890 |
# File 'lib/xberg/native.rb', line 3890 def jats? = false |
#ocr? ⇒ Boolean
3878 |
# File 'lib/xberg/native.rb', line 3878 def ocr? = false |
#pdf? ⇒ Boolean
3858 |
# File 'lib/xberg/native.rb', line 3858 def pdf? = false |
#pptx? ⇒ Boolean
3866 |
# File 'lib/xberg/native.rb', line 3866 def pptx? = false |
#pst? ⇒ Boolean
3894 |
# File 'lib/xberg/native.rb', line 3894 def pst? = false |
#text? ⇒ Boolean
3874 |
# File 'lib/xberg/native.rb', line 3874 def text? = false |
#xml? ⇒ Boolean
3872 |
# File 'lib/xberg/native.rb', line 3872 def xml? = false |