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



3413
3414
3415
# File 'lib/xberg/native.rb', line 3413

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = true

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false