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



2543
2544
2545
# File 'lib/xberg/native.rb', line 2543

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2596
2597
2598
# File 'lib/xberg/native.rb', line 2596

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2592
2593
2594
# File 'lib/xberg/native.rb', line 2592

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = true

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false