Class: Puree::REST::Person

Overview

Note:

:id can be UUID, ID, Employee ID or HESA Staff ID

Requests for the Person resource

Instance Method Summary collapse

Methods included from StudentThesisMixin

#student_theses

Methods included from ResearchOutputMixin

#research_outputs

Methods included from ProjectMixin

#projects

Methods included from PrizeMixin

#prizes

Methods included from PressMediaMixin

#press_media

Methods included from ImpactMixin

#impacts

Methods included from FormerMixin

#former

Methods included from DatasetMixin

#datasets

Methods included from AwardMixin

#awards

Methods included from ApplicationMixin

#applications

Methods included from ActivityMixin

#activities

Methods included from ActiveMixin

#active

Methods inherited from Base

#all, #find, #orderings, #renderings

Constructor Details

#initialize(config) ⇒ Person

Returns a new instance of Person.

Parameters:

  • config (Hash)

Options Hash (config):

  • :url (String)

    URL of the Pure host

  • :username (String)

    Username of the Pure host account

  • :password (String)

    Password of the Pure host account

  • :api_key (String)

    API key of the Pure host account



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

def initialize(config)
  super
end

Instance Method Details

#curricula_vitae(id:, params: {}, accept: :xml) ⇒ HTTP::Response

Parameters:

  • id (String)
  • params (Hash) (defaults to: {})
  • accept (Symbol) (defaults to: :xml)

Returns:

  • (HTTP::Response)


41
42
43
44
45
46
# File 'lib/puree/rest/person.rb', line 41

def curricula_vitae(id:, params: {}, accept: :xml)
  get_request_singleton_subcollection(id: id,
                                   subcollection: 'curricula-vitae',
                                   params: params,
                                   accept: accept)
end