Class: Xberg::FormatMetadataDocx

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

Overview

Metadata extracted from a DOCX Word 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



1389
1390
1391
# File 'lib/xberg/native.rb', line 1389

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1441
1442
1443
1444
# File 'lib/xberg/native.rb', line 1441

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


1437
1438
1439
# File 'lib/xberg/native.rb', line 1437

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false