Class: Xberg::FormatMetadataPst

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

Overview

Metadata extracted from an Outlook PST archive.

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



2375
2376
2377
# File 'lib/xberg/native.rb', line 2375

def value
  @value
end

Class Method Details

.from_hash(hash) ⇒ Object



2427
2428
2429
2430
# File 'lib/xberg/native.rb', line 2427

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

Instance Method Details

#archive?Boolean

Returns:

  • (Boolean)


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

def archive? = false

#audio?Boolean

Returns:

  • (Boolean)


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

def audio? = false

#bibtex?Boolean

Returns:

  • (Boolean)


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

def bibtex? = false

#citation?Boolean

Returns:

  • (Boolean)


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

def citation? = false

#code?Boolean

Returns:

  • (Boolean)


2423
2424
2425
# File 'lib/xberg/native.rb', line 2423

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

#csv?Boolean

Returns:

  • (Boolean)


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

def csv? = false

#dbf?Boolean

Returns:

  • (Boolean)


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

def dbf? = false

#docx?Boolean

Returns:

  • (Boolean)


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

def docx? = false

#email?Boolean

Returns:

  • (Boolean)


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

def email? = false

#epub?Boolean

Returns:

  • (Boolean)


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

def epub? = false

#excel?Boolean

Returns:

  • (Boolean)


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

def excel? = false

#fiction_book?Boolean

Returns:

  • (Boolean)


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

def fiction_book? = false

#html?Boolean

Returns:

  • (Boolean)


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

def html? = false

#image?Boolean

Returns:

  • (Boolean)


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

def image? = false

#jats?Boolean

Returns:

  • (Boolean)


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

def jats? = false

#ocr?Boolean

Returns:

  • (Boolean)


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

def ocr? = false

#pdf?Boolean

Returns:

  • (Boolean)


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

def pdf? = false

#pptx?Boolean

Returns:

  • (Boolean)


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

def pptx? = false

#pst?Boolean

Returns:

  • (Boolean)


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

def pst? = true

#text?Boolean

Returns:

  • (Boolean)


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

def text? = false

#xml?Boolean

Returns:

  • (Boolean)


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

def xml? = false