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



2405
2406
2407
# File 'lib/xberg/native.rb', line 2405

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2457
2458
2459
# File 'lib/xberg/native.rb', line 2457

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2453
2454
2455
# File 'lib/xberg/native.rb', line 2453

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = true

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false