Class: Xberg::FormatMetadataEpub

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
FormatMetadata
Defined in:
lib/xberg/native.rb

Overview

Metadata extracted from an EPUB e-book.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3531
3532
3533
# File 'lib/xberg/native.rb', line 3531

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3584
3585
3586
# File 'lib/xberg/native.rb', line 3584

def self.from_hash(hash)
  new(value: hash[:_0] || hash["_0"])
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


3550
# File 'lib/xberg/native.rb', line 3550

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


3578
# File 'lib/xberg/native.rb', line 3578

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


3564
# File 'lib/xberg/native.rb', line 3564

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


3566
# File 'lib/xberg/native.rb', line 3566

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3580
3581
3582
# File 'lib/xberg/native.rb', line 3580

def code? = false
# @param hash [Hash] deserialized from the native extension
# @return [self]

#csv?Boolean

Returns:

  • (Boolean)


3562
# File 'lib/xberg/native.rb', line 3562

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


3570
# File 'lib/xberg/native.rb', line 3570

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


3542
# File 'lib/xberg/native.rb', line 3542

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


3546
# File 'lib/xberg/native.rb', line 3546

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


3574
# File 'lib/xberg/native.rb', line 3574

def epub? = true

#excel?Boolean

Returns:

  • (Boolean)


3544
# File 'lib/xberg/native.rb', line 3544

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


3568
# File 'lib/xberg/native.rb', line 3568

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


3558
# File 'lib/xberg/native.rb', line 3558

def html? = false

#image?Boolean

Returns:

  • (Boolean)


3552
# File 'lib/xberg/native.rb', line 3552

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


3572
# File 'lib/xberg/native.rb', line 3572

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


3560
# File 'lib/xberg/native.rb', line 3560

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


3540
# File 'lib/xberg/native.rb', line 3540

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


3548
# File 'lib/xberg/native.rb', line 3548

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


3576
# File 'lib/xberg/native.rb', line 3576

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


3556
# File 'lib/xberg/native.rb', line 3556

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


3554
# File 'lib/xberg/native.rb', line 3554

def xml? = false