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



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3929
3930
3931
# File 'lib/xberg/native.rb', line 3929

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3925
3926
3927
# File 'lib/xberg/native.rb', line 3925

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = true

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false