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



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3010
3011
3012
# File 'lib/xberg/native.rb', line 3010

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3006
3007
3008
# File 'lib/xberg/native.rb', line 3006

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = true