Class: Puree::Publication
Overview
Publication resource
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#category ⇒ String
Category.
-
#description ⇒ String
Description.
-
#doi ⇒ String
Digital Object Identifier.
-
#event ⇒ Hash
Event.
-
#file ⇒ Array<Hash>
Supporting file.
-
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Publication
constructor
A new instance of Publication.
-
#metadata ⇒ Hash
All metadata.
-
#organisation ⇒ Array<Hash>
Organisation.
-
#page ⇒ String
Page.
-
#person ⇒ Hash<Array,Array,Array>
Person (internal, external, other).
-
#status ⇒ Array<Hash>
Status.
-
#subtitle ⇒ String
Subtitle.
-
#title ⇒ String
Title.
-
#type ⇒ String
Type.
Methods inherited from Resource
#created, #get, #locale, #modified, #set_content, #uuid
Constructor Details
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Publication
11 12 13 14 15 16 17 |
# File 'lib/puree/publication.rb', line 11 def initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) super(api: :publication, base_url: base_url, username: username, password: password, basic_auth: basic_auth) end |
Instance Method Details
#category ⇒ String
Category
22 23 24 |
# File 'lib/puree/publication.rb', line 22 def category ['category'] end |
#description ⇒ String
Description
29 30 31 |
# File 'lib/puree/publication.rb', line 29 def description ['description'] end |
#doi ⇒ String
Digital Object Identifier
43 44 45 |
# File 'lib/puree/publication.rb', line 43 def doi ['doi'] end |
#event ⇒ Hash
Event
36 37 38 |
# File 'lib/puree/publication.rb', line 36 def event ['event'] end |
#file ⇒ Array<Hash>
Supporting file
50 51 52 |
# File 'lib/puree/publication.rb', line 50 def file ['file'] end |
#metadata ⇒ Hash
All metadata
106 107 108 |
# File 'lib/puree/publication.rb', line 106 def end |
#organisation ⇒ Array<Hash>
Organisation
57 58 59 |
# File 'lib/puree/publication.rb', line 57 def organisation ['organisation'] end |
#page ⇒ String
Page
64 65 66 |
# File 'lib/puree/publication.rb', line 64 def page ['page'] end |
#person ⇒ Hash<Array,Array,Array>
Person (internal, external, other)
71 72 73 |
# File 'lib/puree/publication.rb', line 71 def person ['person'] end |
#status ⇒ Array<Hash>
Status
78 79 80 |
# File 'lib/puree/publication.rb', line 78 def status ['status'] end |
#subtitle ⇒ String
Subtitle
92 93 94 |
# File 'lib/puree/publication.rb', line 92 def subtitle ['subtitle'] end |
#title ⇒ String
Title
85 86 87 |
# File 'lib/puree/publication.rb', line 85 def title ['title'] end |
#type ⇒ String
Type
99 100 101 |
# File 'lib/puree/publication.rb', line 99 def type ['type'] end |