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



3733
3734
3735
# File 'lib/xberg/native.rb', line 3733

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3786
3787
3788
# File 'lib/xberg/native.rb', line 3786

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3782
3783
3784
# File 'lib/xberg/native.rb', line 3782

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = true

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false