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)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



1447
1448
1449
# File 'lib/xberg/native.rb', line 1447

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



1499
1500
1501
1502
# File 'lib/xberg/native.rb', line 1499

def self.from_hash(hash)
  payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym)
  new(value: ExcelMetadata.new(payload))
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


1495
1496
1497
# File 'lib/xberg/native.rb', line 1495

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = true

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false