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



2609
2610
2611
# File 'lib/xberg/native.rb', line 2609

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2662
2663
2664
# File 'lib/xberg/native.rb', line 2662

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2658
2659
2660
# File 'lib/xberg/native.rb', line 2658

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false