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



2661
2662
2663
# File 'lib/xberg/native.rb', line 2661

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2714
2715
2716
# File 'lib/xberg/native.rb', line 2714

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2710
2711
2712
# File 'lib/xberg/native.rb', line 2710

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = true

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false