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



2846
2847
2848
# File 'lib/xberg/native.rb', line 2846

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2899
2900
2901
# File 'lib/xberg/native.rb', line 2899

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2895
2896
2897
# File 'lib/xberg/native.rb', line 2895

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false