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



2601
2602
2603
# File 'lib/xberg/native.rb', line 2601

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false