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



3032
3033
3034
# File 'lib/xberg/native.rb', line 3032

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



3084
3085
3086
# File 'lib/xberg/native.rb', line 3084

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


3080
3081
3082
# File 'lib/xberg/native.rb', line 3080

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = true

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false