Class: Puree::Journal
Overview
Journal resource
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Journal
constructor
A new instance of Journal.
-
#issn ⇒ String
ISSN.
-
#metadata ⇒ Hash
All metadata.
-
#publisher ⇒ String
Publisher.
-
#title ⇒ String
Title.
Methods inherited from Resource
#created, #get, #locale, #modified, #set_content, #uuid
Constructor Details
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Journal
Returns a new instance of Journal.
11 12 13 14 15 16 17 |
# File 'lib/puree/journal.rb', line 11 def initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) super(api: :journal, base_url: base_url, username: username, password: password, basic_auth: basic_auth) end |
Instance Method Details
#issn ⇒ String
ISSN
22 23 24 |
# File 'lib/puree/journal.rb', line 22 def issn @metadata['issn'] end |
#metadata ⇒ Hash
All metadata
43 44 45 |
# File 'lib/puree/journal.rb', line 43 def @metadata end |
#publisher ⇒ String
Publisher
29 30 31 |
# File 'lib/puree/journal.rb', line 29 def publisher @metadata['publisher'] end |
#title ⇒ String
Title
36 37 38 |
# File 'lib/puree/journal.rb', line 36 def title @metadata['title'] end |