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)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



1331
1332
1333
# File 'lib/xberg/native.rb', line 1331

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1383
1384
1385
1386
# File 'lib/xberg/native.rb', line 1383

def self.from_hash(hash)
  payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym)
  new(value: PdfMetadata.new(payload))
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


1379
1380
1381
# File 'lib/xberg/native.rb', line 1379

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = true

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false