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



3426
3427
3428
# File 'lib/xberg/native.rb', line 3426

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3479
3480
3481
# File 'lib/xberg/native.rb', line 3479

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3475
3476
3477
# File 'lib/xberg/native.rb', line 3475

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = true

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false