Class: Xberg::FormatMetadataDocx
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataDocx
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a DOCX Word document.
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
1389 1390 1391 |
# File 'lib/xberg/native.rb', line 1389 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
1441 1442 1443 1444 |
# File 'lib/xberg/native.rb', line 1441 def self.from_hash(hash) payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym) new(value: DocxMetadata.new(payload)) end |
Instance Method Details
#archive? ⇒ Boolean
1407 |
# File 'lib/xberg/native.rb', line 1407 def archive? = false |
#audio? ⇒ Boolean
1435 |
# File 'lib/xberg/native.rb', line 1435 def audio? = false |
#bibtex? ⇒ Boolean
1421 |
# File 'lib/xberg/native.rb', line 1421 def bibtex? = false |
#citation? ⇒ Boolean
1423 |
# File 'lib/xberg/native.rb', line 1423 def citation? = false |
#code? ⇒ Boolean
1437 1438 1439 |
# File 'lib/xberg/native.rb', line 1437 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
1419 |
# File 'lib/xberg/native.rb', line 1419 def csv? = false |
#dbf? ⇒ Boolean
1427 |
# File 'lib/xberg/native.rb', line 1427 def dbf? = false |
#docx? ⇒ Boolean
1399 |
# File 'lib/xberg/native.rb', line 1399 def docx? = true |
#email? ⇒ Boolean
1403 |
# File 'lib/xberg/native.rb', line 1403 def email? = false |
#epub? ⇒ Boolean
1431 |
# File 'lib/xberg/native.rb', line 1431 def epub? = false |
#excel? ⇒ Boolean
1401 |
# File 'lib/xberg/native.rb', line 1401 def excel? = false |
#fiction_book? ⇒ Boolean
1425 |
# File 'lib/xberg/native.rb', line 1425 def fiction_book? = false |
#html? ⇒ Boolean
1415 |
# File 'lib/xberg/native.rb', line 1415 def html? = false |
#image? ⇒ Boolean
1409 |
# File 'lib/xberg/native.rb', line 1409 def image? = false |
#jats? ⇒ Boolean
1429 |
# File 'lib/xberg/native.rb', line 1429 def jats? = false |
#ocr? ⇒ Boolean
1417 |
# File 'lib/xberg/native.rb', line 1417 def ocr? = false |
#pdf? ⇒ Boolean
1397 |
# File 'lib/xberg/native.rb', line 1397 def pdf? = false |
#pptx? ⇒ Boolean
1405 |
# File 'lib/xberg/native.rb', line 1405 def pptx? = false |
#pst? ⇒ Boolean
1433 |
# File 'lib/xberg/native.rb', line 1433 def pst? = false |
#text? ⇒ Boolean
1413 |
# File 'lib/xberg/native.rb', line 1413 def text? = false |
#xml? ⇒ Boolean
1411 |
# File 'lib/xberg/native.rb', line 1411 def xml? = false |