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
3876 3877 3878 |
# File 'lib/xberg/native.rb', line 3876 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3929 3930 3931 |
# File 'lib/xberg/native.rb', line 3929 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3895 |
# File 'lib/xberg/native.rb', line 3895 def archive? = false |
#audio? ⇒ Boolean
3923 |
# File 'lib/xberg/native.rb', line 3923 def audio? = false |
#bibtex? ⇒ Boolean
3909 |
# File 'lib/xberg/native.rb', line 3909 def bibtex? = false |
#citation? ⇒ Boolean
3911 |
# File 'lib/xberg/native.rb', line 3911 def citation? = false |
#code? ⇒ Boolean
3925 3926 3927 |
# File 'lib/xberg/native.rb', line 3925 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3907 |
# File 'lib/xberg/native.rb', line 3907 def csv? = false |
#dbf? ⇒ Boolean
3915 |
# File 'lib/xberg/native.rb', line 3915 def dbf? = false |
#docx? ⇒ Boolean
3887 |
# File 'lib/xberg/native.rb', line 3887 def docx? = false |
#email? ⇒ Boolean
3891 |
# File 'lib/xberg/native.rb', line 3891 def email? = false |
#epub? ⇒ Boolean
3919 |
# File 'lib/xberg/native.rb', line 3919 def epub? = true |
#excel? ⇒ Boolean
3889 |
# File 'lib/xberg/native.rb', line 3889 def excel? = false |
#fiction_book? ⇒ Boolean
3913 |
# File 'lib/xberg/native.rb', line 3913 def fiction_book? = false |
#html? ⇒ Boolean
3903 |
# File 'lib/xberg/native.rb', line 3903 def html? = false |
#image? ⇒ Boolean
3897 |
# File 'lib/xberg/native.rb', line 3897 def image? = false |
#jats? ⇒ Boolean
3917 |
# File 'lib/xberg/native.rb', line 3917 def jats? = false |
#ocr? ⇒ Boolean
3905 |
# File 'lib/xberg/native.rb', line 3905 def ocr? = false |
#pdf? ⇒ Boolean
3885 |
# File 'lib/xberg/native.rb', line 3885 def pdf? = false |
#pptx? ⇒ Boolean
3893 |
# File 'lib/xberg/native.rb', line 3893 def pptx? = false |
#pst? ⇒ Boolean
3921 |
# File 'lib/xberg/native.rb', line 3921 def pst? = false |
#text? ⇒ Boolean
3901 |
# File 'lib/xberg/native.rb', line 3901 def text? = false |
#xml? ⇒ Boolean
3899 |
# File 'lib/xberg/native.rb', line 3899 def xml? = false |