Class: Puree::Extractor::Project
- Defined in:
- lib/puree/extractor/project.rb
Overview
Project extractor.
Instance Method Summary collapse
-
#count(params = {}) ⇒ Integer
Count of records available.
- #find(id) ⇒ Puree::Model::Project?
-
#random(params = {}) ⇒ Puree::Model::Project?
Random record.
Methods inherited from Resource
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/project.rb', line 21 def count(params = {}) record_count :project, params end |
#find(id) ⇒ Puree::Model::Project?
11 12 13 14 15 |
# File 'lib/puree/extractor/project.rb', line 11 def find(id) super id: id, api_resource_type: :project, xml_extractor_resource_type: :project end |
#random(params = {}) ⇒ Puree::Model::Project?
Random record.
29 30 31 |
# File 'lib/puree/extractor/project.rb', line 29 def random(params = {}) super :project, params end |