Class: Xberg::FormatMetadataDbf

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

Overview

Metadata extracted from a dBASE (DBF) database file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3421
3422
3423
# File 'lib/xberg/native.rb', line 3421

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = true

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false