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



2948
2949
2950
# File 'lib/xberg/native.rb', line 2948

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3001
3002
3003
# File 'lib/xberg/native.rb', line 3001

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2997
2998
2999
# File 'lib/xberg/native.rb', line 2997

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = true

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false