Class: Xberg::FormatMetadataFictionBook
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataFictionBook
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a FictionBook (FB2) 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
3600 3601 3602 |
# File 'lib/xberg/native.rb', line 3600 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3653 3654 3655 |
# File 'lib/xberg/native.rb', line 3653 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3619 |
# File 'lib/xberg/native.rb', line 3619 def archive? = false |
#audio? ⇒ Boolean
3647 |
# File 'lib/xberg/native.rb', line 3647 def audio? = false |
#bibtex? ⇒ Boolean
3633 |
# File 'lib/xberg/native.rb', line 3633 def bibtex? = false |
#citation? ⇒ Boolean
3635 |
# File 'lib/xberg/native.rb', line 3635 def citation? = false |
#code? ⇒ Boolean
3649 3650 3651 |
# File 'lib/xberg/native.rb', line 3649 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3631 |
# File 'lib/xberg/native.rb', line 3631 def csv? = false |
#dbf? ⇒ Boolean
3639 |
# File 'lib/xberg/native.rb', line 3639 def dbf? = false |
#docx? ⇒ Boolean
3611 |
# File 'lib/xberg/native.rb', line 3611 def docx? = false |
#email? ⇒ Boolean
3615 |
# File 'lib/xberg/native.rb', line 3615 def email? = false |
#epub? ⇒ Boolean
3643 |
# File 'lib/xberg/native.rb', line 3643 def epub? = false |
#excel? ⇒ Boolean
3613 |
# File 'lib/xberg/native.rb', line 3613 def excel? = false |
#fiction_book? ⇒ Boolean
3637 |
# File 'lib/xberg/native.rb', line 3637 def fiction_book? = true |
#html? ⇒ Boolean
3627 |
# File 'lib/xberg/native.rb', line 3627 def html? = false |
#image? ⇒ Boolean
3621 |
# File 'lib/xberg/native.rb', line 3621 def image? = false |
#jats? ⇒ Boolean
3641 |
# File 'lib/xberg/native.rb', line 3641 def jats? = false |
#ocr? ⇒ Boolean
3629 |
# File 'lib/xberg/native.rb', line 3629 def ocr? = false |
#pdf? ⇒ Boolean
3609 |
# File 'lib/xberg/native.rb', line 3609 def pdf? = false |
#pptx? ⇒ Boolean
3617 |
# File 'lib/xberg/native.rb', line 3617 def pptx? = false |
#pst? ⇒ Boolean
3645 |
# File 'lib/xberg/native.rb', line 3645 def pst? = false |
#text? ⇒ Boolean
3625 |
# File 'lib/xberg/native.rb', line 3625 def text? = false |
#xml? ⇒ Boolean
3623 |
# File 'lib/xberg/native.rb', line 3623 def xml? = false |