Class: Puree::XMLExtractor::Journal
- Includes:
- PublisherMixin
- Defined in:
- lib/puree/xml_extractor/journal.rb
Overview
Journal XML extractor.
Instance Method Summary collapse
-
#initialize(xml) ⇒ Journal
constructor
A new instance of Journal.
- #issn ⇒ String?
- #title ⇒ String?
Methods included from PublisherMixin
Methods inherited from Resource
#created_at, #created_by, #id, #model, #modified_at, #modified_by, #previous_uuids, #uuid
Methods inherited from Base
#xpath_query_for_multi_value, #xpath_query_for_single_value
Constructor Details
#initialize(xml) ⇒ Journal
Returns a new instance of Journal.
10 11 12 13 |
# File 'lib/puree/xml_extractor/journal.rb', line 10 def initialize(xml) super setup_model :journal end |
Instance Method Details
#issn ⇒ String?
16 17 18 |
# File 'lib/puree/xml_extractor/journal.rb', line 16 def issn xpath_query_for_single_value '/issns/issn' end |
#title ⇒ String?
21 22 23 |
# File 'lib/puree/xml_extractor/journal.rb', line 21 def title xpath_query_for_single_value '/titles/title' end |