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)

rubocop:disable Lint/UselessMethodDefinition



2462
2463
2464
# File 'lib/xberg/native.rb', line 2462

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2514
2515
2516
# File 'lib/xberg/native.rb', line 2514

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2510
2511
2512
# File 'lib/xberg/native.rb', line 2510

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false