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
3675 3676 3677 |
# File 'lib/xberg/native.rb', line 3675 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3728 3729 3730 |
# File 'lib/xberg/native.rb', line 3728 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3694 |
# File 'lib/xberg/native.rb', line 3694 def archive? = false |
#audio? ⇒ Boolean
3722 |
# File 'lib/xberg/native.rb', line 3722 def audio? = false |
#bibtex? ⇒ Boolean
3708 |
# File 'lib/xberg/native.rb', line 3708 def bibtex? = false |
#citation? ⇒ Boolean
3710 |
# File 'lib/xberg/native.rb', line 3710 def citation? = false |
#code? ⇒ Boolean
3724 3725 3726 |
# File 'lib/xberg/native.rb', line 3724 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3706 |
# File 'lib/xberg/native.rb', line 3706 def csv? = false |
#dbf? ⇒ Boolean
3714 |
# File 'lib/xberg/native.rb', line 3714 def dbf? = false |
#docx? ⇒ Boolean
3686 |
# File 'lib/xberg/native.rb', line 3686 def docx? = false |
#email? ⇒ Boolean
3690 |
# File 'lib/xberg/native.rb', line 3690 def email? = false |
#epub? ⇒ Boolean
3718 |
# File 'lib/xberg/native.rb', line 3718 def epub? = false |
#excel? ⇒ Boolean
3688 |
# File 'lib/xberg/native.rb', line 3688 def excel? = false |
#fiction_book? ⇒ Boolean
3712 |
# File 'lib/xberg/native.rb', line 3712 def fiction_book? = true |
#html? ⇒ Boolean
3702 |
# File 'lib/xberg/native.rb', line 3702 def html? = false |
#image? ⇒ Boolean
3696 |
# File 'lib/xberg/native.rb', line 3696 def image? = false |
#jats? ⇒ Boolean
3716 |
# File 'lib/xberg/native.rb', line 3716 def jats? = false |
#ocr? ⇒ Boolean
3704 |
# File 'lib/xberg/native.rb', line 3704 def ocr? = false |
#pdf? ⇒ Boolean
3684 |
# File 'lib/xberg/native.rb', line 3684 def pdf? = false |
#pptx? ⇒ Boolean
3692 |
# File 'lib/xberg/native.rb', line 3692 def pptx? = false |
#pst? ⇒ Boolean
3720 |
# File 'lib/xberg/native.rb', line 3720 def pst? = false |
#text? ⇒ Boolean
3700 |
# File 'lib/xberg/native.rb', line 3700 def text? = false |
#xml? ⇒ Boolean
3698 |
# File 'lib/xberg/native.rb', line 3698 def xml? = false |