Module: Puree::REST::ActiveMixin

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

Instance Method Summary collapse

Instance Method Details

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

Parameters:

  • params (Hash) (defaults to: {})

    GET parameters for all records

  • accept (Symbol) (defaults to: :xml)

Returns:

  • (HTTP::Response)


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

def active(params: {}, accept: :xml)
  get_request_collection_subcollection(subcollection: 'active',
                                   params: params,
                                   accept: accept)
end