Class: Xberg::FormatMetadataCsv

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

Overview

Metadata extracted from a CSV or TSV file.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



3189
3190
3191
# File 'lib/xberg/native.rb', line 3189

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3242
3243
3244
# File 'lib/xberg/native.rb', line 3242

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3238
3239
3240
# File 'lib/xberg/native.rb', line 3238

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = true

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false