Sha256: 8df4db7eb0a5eaaffea43f92fe9a34dadbc15ab84f0b0c6ed85cb30793901055
Contents?: true
Size: 897 Bytes
Versions: 11
Compression:
Stored size: 897 Bytes
Contents
module Puree module Extractor # Organisational unit extractor. # class OrganisationalUnit < Puree::Extractor::Resource # @param id [String] # @return [Puree::Model::OrganisationalUnit, nil] def find(id) super id: id, api_resource_type: :organisational_unit, xml_extractor_resource_type: :organisational_unit end # Count of records available. # # @param params [Hash] Combined GET and POST parameters for all records # @return [Integer] def count(params = {}) record_count :organisational_unit, params end # Random record. # # @param params [Hash] Combined GET and POST parameters for all records # @return [Puree::Model::OrganisationalUnit, nil] def random(params = {}) super :organisational_unit, params end end end end
Version data entries
11 entries across 11 versions & 1 rubygems