Class: Puree::Extractor::ExternalOrganisation

Inherits:
Resource
  • Object
show all
Defined in:
lib/puree/extractor/external_organisation.rb

Overview

External organisation extractor.

Instance Method Summary collapse

Methods inherited from Resource

#initialize

Constructor Details

This class inherits a constructor from Puree::Extractor::Resource

Instance Method Details

#count(params = {}) ⇒ Integer

Count of records available.



21
22
23
# File 'lib/puree/extractor/external_organisation.rb', line 21

def count(params = {})
  record_count :external_organisation, params
end

#find(id) ⇒ Puree::Model::ExternalOrganisation?



11
12
13
14
15
# File 'lib/puree/extractor/external_organisation.rb', line 11

def find(id)
  super id: id,
        api_resource_type: :external_organisation,
        xml_extractor_resource_type: :external_organisation
end

#random(params = {}) ⇒ Puree::Model::ExternalOrganisation?

Random record.



29
30
31
# File 'lib/puree/extractor/external_organisation.rb', line 29

def random(params = {})
  super :external_organisation, params
end