Class: Xberg::FormatMetadataJats
- Inherits:
-
Data
- Object
- Data
- Xberg::FormatMetadataJats
- Extended by:
- T::Sig
- Includes:
- FormatMetadata
- Defined in:
- lib/xberg/native.rb
Overview
Metadata extracted from a JATS (Journal Article Tag Suite) XML file.
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
2259 2260 2261 |
# File 'lib/xberg/native.rb', line 2259 def value @value end |
Class Method Details
.from_hash(hash) ⇒ Object
2311 2312 2313 2314 |
# File 'lib/xberg/native.rb', line 2311 def self.from_hash(hash) payload = hash.reject { |key, _| key.to_s == "format_type" }.transform_keys(&:to_sym) new(value: JatsMetadata.new(payload)) end |
Instance Method Details
#archive? ⇒ Boolean
2277 |
# File 'lib/xberg/native.rb', line 2277 def archive? = false |
#audio? ⇒ Boolean
2305 |
# File 'lib/xberg/native.rb', line 2305 def audio? = false |
#bibtex? ⇒ Boolean
2291 |
# File 'lib/xberg/native.rb', line 2291 def bibtex? = false |
#citation? ⇒ Boolean
2293 |
# File 'lib/xberg/native.rb', line 2293 def citation? = false |
#code? ⇒ Boolean
2307 2308 2309 |
# File 'lib/xberg/native.rb', line 2307 def code? = false # @param hash [Hash] deserialized from the native extension # @return [self] |
#csv? ⇒ Boolean
2289 |
# File 'lib/xberg/native.rb', line 2289 def csv? = false |
#dbf? ⇒ Boolean
2297 |
# File 'lib/xberg/native.rb', line 2297 def dbf? = false |
#docx? ⇒ Boolean
2269 |
# File 'lib/xberg/native.rb', line 2269 def docx? = false |
#email? ⇒ Boolean
2273 |
# File 'lib/xberg/native.rb', line 2273 def email? = false |
#epub? ⇒ Boolean
2301 |
# File 'lib/xberg/native.rb', line 2301 def epub? = false |
#excel? ⇒ Boolean
2271 |
# File 'lib/xberg/native.rb', line 2271 def excel? = false |
#fiction_book? ⇒ Boolean
2295 |
# File 'lib/xberg/native.rb', line 2295 def fiction_book? = false |
#html? ⇒ Boolean
2285 |
# File 'lib/xberg/native.rb', line 2285 def html? = false |
#image? ⇒ Boolean
2279 |
# File 'lib/xberg/native.rb', line 2279 def image? = false |
#jats? ⇒ Boolean
2299 |
# File 'lib/xberg/native.rb', line 2299 def jats? = true |
#ocr? ⇒ Boolean
2287 |
# File 'lib/xberg/native.rb', line 2287 def ocr? = false |
#pdf? ⇒ Boolean
2267 |
# File 'lib/xberg/native.rb', line 2267 def pdf? = false |
#pptx? ⇒ Boolean
2275 |
# File 'lib/xberg/native.rb', line 2275 def pptx? = false |
#pst? ⇒ Boolean
2303 |
# File 'lib/xberg/native.rb', line 2303 def pst? = false |
#text? ⇒ Boolean
2283 |
# File 'lib/xberg/native.rb', line 2283 def text? = false |
#xml? ⇒ Boolean
2281 |
# File 'lib/xberg/native.rb', line 2281 def xml? = false |