Module: Puree::REST::ResearchOutputMixin

Included in:
OrganisationalUnit, Person
Defined in:
lib/puree/rest/mixins/research_output_mixin.rb

Instance Method Summary collapse

Instance Method Details

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

Parameters:

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

Returns:

  • (HTTP::Response)


6
7
8
9
10
11
# File 'lib/puree/rest/mixins/research_output_mixin.rb', line 6

def research_outputs(id:, params: {}, accept: :xml)
  get_request_singleton_subcollection(id: id,
                                  subcollection: 'research-outputs',
                                  params: params,
                                  accept: accept)
end