Class: Xberg::FormatMetadataExcel

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

Overview

Metadata extracted from an Excel spreadsheet.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2659
2660
2661
# File 'lib/xberg/native.rb', line 2659

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2712
2713
2714
# File 'lib/xberg/native.rb', line 2712

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2708
2709
2710
# File 'lib/xberg/native.rb', line 2708

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = true

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false