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



3658
3659
3660
# File 'lib/xberg/native.rb', line 3658

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3711
3712
3713
# File 'lib/xberg/native.rb', line 3711

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3707
3708
3709
# File 'lib/xberg/native.rb', line 3707

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = true

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false