Class: Xberg::FormatMetadataPdf

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

Overview

Metadata extracted from a PDF document.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2788
2789
2790
# File 'lib/xberg/native.rb', line 2788

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2841
2842
2843
# File 'lib/xberg/native.rb', line 2841

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2837
2838
2839
# File 'lib/xberg/native.rb', line 2837

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = true

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false