Class: Puree::Dataset
Overview
Dataset resource
Instance Attribute Summary
Attributes inherited from Resource
Instance Method Summary collapse
-
#access ⇒ String
Open access permission.
-
#associated ⇒ Array<Hash>
Combines project and publication.
-
#available ⇒ Hash
Date made available.
-
#description ⇒ String
Description.
-
#doi ⇒ String
Digital Object Identifier.
-
#file ⇒ Array<Hash>
Supporting file.
-
#initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) ⇒ Dataset
constructor
A new instance of Dataset.
-
#keyword ⇒ Array<String>
Keyword.
-
#link ⇒ Array<Hash>
Link.
-
#metadata ⇒ Hash
All metadata.
-
#organisation ⇒ Array<Hash>
Organisation.
-
#owner ⇒ Hash
Owner.
-
#person ⇒ Array<Hash>
Person (internal, external, other).
-
#production ⇒ Hash
Date of data production.
-
#project ⇒ Array<Hash>
Project.
-
#publication ⇒ Array<Hash>
Publication.
-
#publisher ⇒ String
Publisher.
-
#spatial ⇒ Array<String>
Spatial coverage (place names).
-
#spatial_point ⇒ Hash
Spatial coverage point.
-
#temporal ⇒ Hash
Temporal coverage.
-
#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) ⇒ Dataset
Returns a new instance of Dataset.
11 12 13 14 15 16 17 |
# File 'lib/puree/dataset.rb', line 11 def initialize(base_url: nil, username: nil, password: nil, basic_auth: nil) super(api: :dataset, base_url: base_url, username: username, password: password, basic_auth: basic_auth) end |
Instance Method Details
#access ⇒ String
Open access permission
22 23 24 |
# File 'lib/puree/dataset.rb', line 22 def access @metadata['access'] end |
#associated ⇒ Array<Hash>
Combines project and publication
29 30 31 |
# File 'lib/puree/dataset.rb', line 29 def associated @metadata['associated'] end |
#available ⇒ Hash
Date made available
36 37 38 |
# File 'lib/puree/dataset.rb', line 36 def available @metadata['available'] end |
#description ⇒ String
Description
43 44 45 |
# File 'lib/puree/dataset.rb', line 43 def description @metadata['description'] end |
#doi ⇒ String
Digital Object Identifier
50 51 52 |
# File 'lib/puree/dataset.rb', line 50 def doi @metadata['doi'] end |
#file ⇒ Array<Hash>
Supporting file
57 58 59 |
# File 'lib/puree/dataset.rb', line 57 def file @metadata['file'] end |
#keyword ⇒ Array<String>
Keyword
64 65 66 |
# File 'lib/puree/dataset.rb', line 64 def keyword @metadata['keyword'] end |
#link ⇒ Array<Hash>
Link
71 72 73 |
# File 'lib/puree/dataset.rb', line 71 def link @metadata['link'] end |
#metadata ⇒ Hash
All metadata
155 156 157 |
# File 'lib/puree/dataset.rb', line 155 def @metadata end |
#organisation ⇒ Array<Hash>
Organisation
78 79 80 |
# File 'lib/puree/dataset.rb', line 78 def organisation @metadata['organisation'] end |
#owner ⇒ Hash
Owner
85 86 87 |
# File 'lib/puree/dataset.rb', line 85 def owner @metadata['owner'] end |
#person ⇒ Array<Hash>
Person (internal, external, other)
92 93 94 |
# File 'lib/puree/dataset.rb', line 92 def person @metadata['person'] end |
#production ⇒ Hash
Date of data production
99 100 101 |
# File 'lib/puree/dataset.rb', line 99 def production @metadata['production'] end |
#project ⇒ Array<Hash>
Project
106 107 108 |
# File 'lib/puree/dataset.rb', line 106 def project @metadata['project'] end |
#publication ⇒ Array<Hash>
Publication
113 114 115 |
# File 'lib/puree/dataset.rb', line 113 def publication @metadata['publication'] end |
#publisher ⇒ String
Publisher
120 121 122 |
# File 'lib/puree/dataset.rb', line 120 def publisher @metadata['publisher'] end |
#spatial ⇒ Array<String>
Spatial coverage (place names)
127 128 129 |
# File 'lib/puree/dataset.rb', line 127 def spatial @metadata['spatial'] end |
#spatial_point ⇒ Hash
Spatial coverage point
134 135 136 |
# File 'lib/puree/dataset.rb', line 134 def spatial_point @metadata['spatial_point'] end |
#temporal ⇒ Hash
Temporal coverage
141 142 143 |
# File 'lib/puree/dataset.rb', line 141 def temporal @metadata['temporal'] end |
#title ⇒ String
Title
148 149 150 |
# File 'lib/puree/dataset.rb', line 148 def title @metadata['title'] end |