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



3181
3182
3183
# File 'lib/xberg/native.rb', line 3181

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



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

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


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

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = true

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false