Class: Xberg::FormatMetadataCsv

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

Overview

Metadata extracted from a CSV or TSV file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3501
3502
3503
# File 'lib/xberg/native.rb', line 3501

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3554
3555
3556
# File 'lib/xberg/native.rb', line 3554

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3550
3551
3552
# File 'lib/xberg/native.rb', line 3550

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = true

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false