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



2603
2604
2605
# File 'lib/xberg/native.rb', line 2603

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2656
2657
2658
# File 'lib/xberg/native.rb', line 2656

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2652
2653
2654
# File 'lib/xberg/native.rb', line 2652

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false