Class: Xberg::FormatMetadataEmail

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

Overview

Metadata extracted from an email message (EML/MSG).

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#valueObject (readonly)

rubocop:disable Lint/UselessMethodDefinition



2725
2726
2727
# File 'lib/xberg/native.rb', line 2725

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2778
2779
2780
# File 'lib/xberg/native.rb', line 2778

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2774
2775
2776
# File 'lib/xberg/native.rb', line 2774

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = true

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = false

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false