Module: Puree::REST::PrizeMixin

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

Instance Method Summary collapse

Instance Method Details

#prizes(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/prize_mixin.rb', line 6

def prizes(id:, params: {}, accept: :xml)
  get_request_singleton_subcollection(id: id,
                                  subcollection: 'prizes',
                                  params: params,
                                  accept: accept)
end