Class: Puree::REST::Client
- Inherits:
-
Object
- Object
- Puree::REST::Client
- Defined in:
- lib/puree/rest/client.rb
Overview
Requests for all resources
Instance Method Summary collapse
- #activities ⇒ Puree::REST::Activity
- #applications ⇒ Puree::REST::Application
- #classification_schemes ⇒ Puree::REST::ClassificationScheme
- #curricula_vitae ⇒ Puree::REST::CurriculaVitae
- #datasets ⇒ Puree::REST::Dataset
- #equipments ⇒ Puree::REST::Equipment
- #events ⇒ Puree::REST::Event
- #external_organisations ⇒ Puree::REST::ExternalOrganisation
- #external_persons ⇒ Puree::REST::ExternalPerson
- #impacts ⇒ Puree::REST::Impact
-
#initialize(config) ⇒ Client
constructor
A new instance of Client.
- #journals ⇒ Puree::REST::Journal
- #organisational_units ⇒ Puree::REST::OrganisationalUnit
- #persons ⇒ Puree::REST::Person
- #press_media ⇒ Puree::REST::PressMedia
- #prizes ⇒ Puree::REST::Prize
- #projects ⇒ Puree::REST::Project
- #publishers ⇒ Puree::REST::Publisher
- #research_outputs ⇒ Puree::REST::ResearchOutput
Constructor Details
#initialize(config) ⇒ Client
Returns a new instance of Client.
10 11 12 |
# File 'lib/puree/rest/client.rb', line 10 def initialize(config) @config = config end |
Instance Method Details
#activities ⇒ Puree::REST::Activity
15 16 17 |
# File 'lib/puree/rest/client.rb', line 15 def activities Puree::REST::Activity.new @config end |
#applications ⇒ Puree::REST::Application
20 21 22 |
# File 'lib/puree/rest/client.rb', line 20 def applications Puree::REST::Application.new @config end |
#classification_schemes ⇒ Puree::REST::ClassificationScheme
25 26 27 |
# File 'lib/puree/rest/client.rb', line 25 def classification_schemes Puree::REST::ClassificationScheme.new @config end |
#curricula_vitae ⇒ Puree::REST::CurriculaVitae
30 31 32 |
# File 'lib/puree/rest/client.rb', line 30 def curricula_vitae Puree::REST::CurriculaVitae.new @config end |
#datasets ⇒ Puree::REST::Dataset
35 36 37 |
# File 'lib/puree/rest/client.rb', line 35 def datasets Puree::REST::Dataset.new @config end |
#equipments ⇒ Puree::REST::Equipment
40 41 42 |
# File 'lib/puree/rest/client.rb', line 40 def equipments Puree::REST::Equipment.new @config end |
#events ⇒ Puree::REST::Event
45 46 47 |
# File 'lib/puree/rest/client.rb', line 45 def events Puree::REST::Event.new @config end |
#external_organisations ⇒ Puree::REST::ExternalOrganisation
50 51 52 |
# File 'lib/puree/rest/client.rb', line 50 def external_organisations Puree::REST::ExternalOrganisation.new @config end |
#external_persons ⇒ Puree::REST::ExternalPerson
55 56 57 |
# File 'lib/puree/rest/client.rb', line 55 def external_persons Puree::REST::ExternalPerson.new @config end |
#impacts ⇒ Puree::REST::Impact
60 61 62 |
# File 'lib/puree/rest/client.rb', line 60 def impacts Puree::REST::Impact.new @config end |
#journals ⇒ Puree::REST::Journal
65 66 67 |
# File 'lib/puree/rest/client.rb', line 65 def journals Puree::REST::Journal.new @config end |
#organisational_units ⇒ Puree::REST::OrganisationalUnit
70 71 72 |
# File 'lib/puree/rest/client.rb', line 70 def organisational_units Puree::REST::OrganisationalUnit.new @config end |
#persons ⇒ Puree::REST::Person
75 76 77 |
# File 'lib/puree/rest/client.rb', line 75 def persons Puree::REST::Person.new @config end |
#press_media ⇒ Puree::REST::PressMedia
80 81 82 |
# File 'lib/puree/rest/client.rb', line 80 def press_media Puree::REST::PressMedia.new @config end |
#prizes ⇒ Puree::REST::Prize
85 86 87 |
# File 'lib/puree/rest/client.rb', line 85 def prizes Puree::REST::Prize.new @config end |
#projects ⇒ Puree::REST::Project
90 91 92 |
# File 'lib/puree/rest/client.rb', line 90 def projects Puree::REST::Project.new @config end |
#publishers ⇒ Puree::REST::Publisher
95 96 97 |
# File 'lib/puree/rest/client.rb', line 95 def publishers Puree::REST::Publisher.new @config end |
#research_outputs ⇒ Puree::REST::ResearchOutput
100 101 102 |
# File 'lib/puree/rest/client.rb', line 100 def research_outputs Puree::REST::ResearchOutput.new @config end |