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
3203 3204 3205 |
# File 'lib/xberg/native.rb', line 3203 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
3255 3256 3257 |
# File 'lib/xberg/native.rb', line 3255 def self.from_hash(hash) new(value: hash[:_0] || hash["_0"]) end |
Instance Method Details
#archive? ⇒ Boolean
3221 |
# File 'lib/xberg/native.rb', line 3221 def archive? = false |
#audio? ⇒ Boolean
3249 |
# File 'lib/xberg/native.rb', line 3249 def audio? = false |
#bibtex? ⇒ Boolean
3235 |
# File 'lib/xberg/native.rb', line 3235 def bibtex? = false |
#citation? ⇒ Boolean
3237 |
# File 'lib/xberg/native.rb', line 3237 def citation? = false |
#code? ⇒ Boolean
3251 3252 3253 |
# File 'lib/xberg/native.rb', line 3251 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
3233 |
# File 'lib/xberg/native.rb', line 3233 def csv? = false |
#dbf? ⇒ Boolean
3241 |
# File 'lib/xberg/native.rb', line 3241 def dbf? = false |
#docx? ⇒ Boolean
3213 |
# File 'lib/xberg/native.rb', line 3213 def docx? = false |
#email? ⇒ Boolean
3217 |
# File 'lib/xberg/native.rb', line 3217 def email? = false |
#epub? ⇒ Boolean
3245 |
# File 'lib/xberg/native.rb', line 3245 def epub? = false |
#excel? ⇒ Boolean
3215 |
# File 'lib/xberg/native.rb', line 3215 def excel? = false |
#fiction_book? ⇒ Boolean
3239 |
# File 'lib/xberg/native.rb', line 3239 def fiction_book? = true |
#html? ⇒ Boolean
3229 |
# File 'lib/xberg/native.rb', line 3229 def html? = false |
#image? ⇒ Boolean
3223 |
# File 'lib/xberg/native.rb', line 3223 def image? = false |
#jats? ⇒ Boolean
3243 |
# File 'lib/xberg/native.rb', line 3243 def jats? = false |
#ocr? ⇒ Boolean
3231 |
# File 'lib/xberg/native.rb', line 3231 def ocr? = false |
#pdf? ⇒ Boolean
3211 |
# File 'lib/xberg/native.rb', line 3211 def pdf? = false |
#pptx? ⇒ Boolean
3219 |
# File 'lib/xberg/native.rb', line 3219 def pptx? = false |
#pst? ⇒ Boolean
3247 |
# File 'lib/xberg/native.rb', line 3247 def pst? = false |
#text? ⇒ Boolean
3227 |
# File 'lib/xberg/native.rb', line 3227 def text? = false |
#xml? ⇒ Boolean
3225 |
# File 'lib/xberg/native.rb', line 3225 def xml? = false |