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)

Returns the value of attribute value

Returns:

  • (Object)

    the current value of value



2201
2202
2203
# File 'lib/xberg/native.rb', line 2201

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2253
2254
2255
2256
# File 'lib/xberg/native.rb', line 2253

def self.from_hash(hash)
  payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym)
  new(value: DbfMetadata.new(payload))
end

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2249
2250
2251
# File 'lib/xberg/native.rb', line 2249

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = true

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false