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



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

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3581
3582
3583
# File 'lib/xberg/native.rb', line 3581

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3577
3578
3579
# File 'lib/xberg/native.rb', line 3577

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = true

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false