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



3774
3775
3776
# File 'lib/xberg/native.rb', line 3774

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3827
3828
3829
# File 'lib/xberg/native.rb', line 3827

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3823
3824
3825
# File 'lib/xberg/native.rb', line 3823

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = true

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false