Class: Puree::Publication

Inherits:
Resource show all
Defined in:
lib/puree/publication.rb

Overview

Publication resource

Instance Attribute Summary

Attributes inherited from Resource

#response

Instance Method Summary collapse

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

#categoryString

Category



22
23
24
# File 'lib/puree/publication.rb', line 22

def category
  ['category']
end

#descriptionString

Description



29
30
31
# File 'lib/puree/publication.rb', line 29

def description
  ['description']
end

#doiString

Digital Object Identifier



43
44
45
# File 'lib/puree/publication.rb', line 43

def doi
  ['doi']
end

#eventHash

Event



36
37
38
# File 'lib/puree/publication.rb', line 36

def event
  ['event']
end

#fileArray<Hash>

Supporting file



50
51
52
# File 'lib/puree/publication.rb', line 50

def file
  ['file']
end

#metadataHash

All metadata



106
107
108
# File 'lib/puree/publication.rb', line 106

def 
  
end

#organisationArray<Hash>

Organisation



57
58
59
# File 'lib/puree/publication.rb', line 57

def organisation
  ['organisation']
end

#pageString

Page



64
65
66
# File 'lib/puree/publication.rb', line 64

def page
  ['page']
end

#personHash<Array,Array,Array>

Person (internal, external, other)



71
72
73
# File 'lib/puree/publication.rb', line 71

def person
  ['person']
end

#statusArray<Hash>

Status



78
79
80
# File 'lib/puree/publication.rb', line 78

def status
  ['status']
end

#subtitleString

Subtitle



92
93
94
# File 'lib/puree/publication.rb', line 92

def subtitle
  ['subtitle']
end

#titleString

Title



85
86
87
# File 'lib/puree/publication.rb', line 85

def title
  ['title']
end

#typeString

Type



99
100
101
# File 'lib/puree/publication.rb', line 99

def type
  ['type']
end