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



3537
3538
3539
# File 'lib/xberg/native.rb', line 3537

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3590
3591
3592
# File 'lib/xberg/native.rb', line 3590

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3586
3587
3588
# File 'lib/xberg/native.rb', line 3586

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = true

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false