Class: Xberg::FormatMetadataPdf
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataPdf
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a PDF 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
1331 1332 1333 |
# File 'lib/xberg/native.rb', line 1331 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
1383 1384 1385 1386 |
# File 'lib/xberg/native.rb', line 1383 def self.from_hash(hash) payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym) new(value: PdfMetadata.new(payload)) end |
Instance Method Details
#archive? ⇒ Boolean
1349 |
# File 'lib/xberg/native.rb', line 1349 def archive? = false |
#audio? ⇒ Boolean
1377 |
# File 'lib/xberg/native.rb', line 1377 def audio? = false |
#bibtex? ⇒ Boolean
1363 |
# File 'lib/xberg/native.rb', line 1363 def bibtex? = false |
#citation? ⇒ Boolean
1365 |
# File 'lib/xberg/native.rb', line 1365 def citation? = false |
#code? ⇒ Boolean
1379 1380 1381 |
# File 'lib/xberg/native.rb', line 1379 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
1361 |
# File 'lib/xberg/native.rb', line 1361 def csv? = false |
#dbf? ⇒ Boolean
1369 |
# File 'lib/xberg/native.rb', line 1369 def dbf? = false |
#docx? ⇒ Boolean
1341 |
# File 'lib/xberg/native.rb', line 1341 def docx? = false |
#email? ⇒ Boolean
1345 |
# File 'lib/xberg/native.rb', line 1345 def email? = false |
#epub? ⇒ Boolean
1373 |
# File 'lib/xberg/native.rb', line 1373 def epub? = false |
#excel? ⇒ Boolean
1343 |
# File 'lib/xberg/native.rb', line 1343 def excel? = false |
#fiction_book? ⇒ Boolean
1367 |
# File 'lib/xberg/native.rb', line 1367 def fiction_book? = false |
#html? ⇒ Boolean
1357 |
# File 'lib/xberg/native.rb', line 1357 def html? = false |
#image? ⇒ Boolean
1351 |
# File 'lib/xberg/native.rb', line 1351 def image? = false |
#jats? ⇒ Boolean
1371 |
# File 'lib/xberg/native.rb', line 1371 def jats? = false |
#ocr? ⇒ Boolean
1359 |
# File 'lib/xberg/native.rb', line 1359 def ocr? = false |
#pdf? ⇒ Boolean
1339 |
# File 'lib/xberg/native.rb', line 1339 def pdf? = true |
#pptx? ⇒ Boolean
1347 |
# File 'lib/xberg/native.rb', line 1347 def pptx? = false |
#pst? ⇒ Boolean
1375 |
# File 'lib/xberg/native.rb', line 1375 def pst? = false |
#text? ⇒ Boolean
1355 |
# File 'lib/xberg/native.rb', line 1355 def text? = false |
#xml? ⇒ Boolean
1353 |
# File 'lib/xberg/native.rb', line 1353 def xml? = false |