Class: Xberg::FormatMetadataXml

Inherits:
Data
  • Object
show all
Extended by:
T::Sig
Includes:
FormatMetadata
Defined in:
lib/xberg/native.rb

Overview

Metadata extracted from an XML document.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = true