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



3849
3850
3851
# File 'lib/xberg/native.rb', line 3849

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3902
3903
3904
# File 'lib/xberg/native.rb', line 3902

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3898
3899
3900
# File 'lib/xberg/native.rb', line 3898

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = true

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false