Class: Xberg::FormatMetadataEmail
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataEmail
- 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
-
#value ⇒ Object
readonly
Returns the value of attribute value.
Class Method Summary collapse
Instance Method Summary collapse
- #archive? ⇒ Boolean
- #audio? ⇒ Boolean
- #bibtex? ⇒ Boolean
- #citation? ⇒ Boolean
- #code? ⇒ Boolean
- #csv? ⇒ Boolean
- #dbf? ⇒ Boolean
- #docx? ⇒ Boolean
- #email? ⇒ Boolean
- #epub? ⇒ Boolean
- #excel? ⇒ Boolean
- #fiction_book? ⇒ Boolean
- #html? ⇒ Boolean
- #image? ⇒ Boolean
- #jats? ⇒ Boolean
- #ocr? ⇒ Boolean
- #pdf? ⇒ Boolean
- #pptx? ⇒ Boolean
- #pst? ⇒ Boolean
- #text? ⇒ Boolean
- #xml? ⇒ Boolean
Instance Attribute Details
#value ⇒ Object (readonly)
Returns the value of attribute value
1505 1506 1507 |
# File 'lib/xberg/native.rb', line 1505 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
1557 1558 1559 1560 |
# File 'lib/xberg/native.rb', line 1557 def self.from_hash(hash) payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym) new(value: EmailMetadata.new(payload)) end |
Instance Method Details
#archive? ⇒ Boolean
1523 |
# File 'lib/xberg/native.rb', line 1523 def archive? = false |
#audio? ⇒ Boolean
1551 |
# File 'lib/xberg/native.rb', line 1551 def audio? = false |
#bibtex? ⇒ Boolean
1537 |
# File 'lib/xberg/native.rb', line 1537 def bibtex? = false |
#citation? ⇒ Boolean
1539 |
# File 'lib/xberg/native.rb', line 1539 def citation? = false |
#code? ⇒ Boolean
1553 1554 1555 |
# File 'lib/xberg/native.rb', line 1553 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
1535 |
# File 'lib/xberg/native.rb', line 1535 def csv? = false |
#dbf? ⇒ Boolean
1543 |
# File 'lib/xberg/native.rb', line 1543 def dbf? = false |
#docx? ⇒ Boolean
1515 |
# File 'lib/xberg/native.rb', line 1515 def docx? = false |
#email? ⇒ Boolean
1519 |
# File 'lib/xberg/native.rb', line 1519 def email? = true |
#epub? ⇒ Boolean
1547 |
# File 'lib/xberg/native.rb', line 1547 def epub? = false |
#excel? ⇒ Boolean
1517 |
# File 'lib/xberg/native.rb', line 1517 def excel? = false |
#fiction_book? ⇒ Boolean
1541 |
# File 'lib/xberg/native.rb', line 1541 def fiction_book? = false |
#html? ⇒ Boolean
1531 |
# File 'lib/xberg/native.rb', line 1531 def html? = false |
#image? ⇒ Boolean
1525 |
# File 'lib/xberg/native.rb', line 1525 def image? = false |
#jats? ⇒ Boolean
1545 |
# File 'lib/xberg/native.rb', line 1545 def jats? = false |
#ocr? ⇒ Boolean
1533 |
# File 'lib/xberg/native.rb', line 1533 def ocr? = false |
#pdf? ⇒ Boolean
1513 |
# File 'lib/xberg/native.rb', line 1513 def pdf? = false |
#pptx? ⇒ Boolean
1521 |
# File 'lib/xberg/native.rb', line 1521 def pptx? = false |
#pst? ⇒ Boolean
1549 |
# File 'lib/xberg/native.rb', line 1549 def pst? = false |
#text? ⇒ Boolean
1529 |
# File 'lib/xberg/native.rb', line 1529 def text? = false |
#xml? ⇒ Boolean
1527 |
# File 'lib/xberg/native.rb', line 1527 def xml? = false |