lib/puree/extractor/project.rb in puree-2.1.1 vs lib/puree/extractor/project.rb in puree-2.2.0
- old
+ new
@@ -5,13 +5,28 @@
# Project extractor.
#
class Project < Puree::Extractor::Resource
# @param id [String]
+ # @return [Puree::Model::Project, nil]
def find(id)
- find_and_extract id: id,
- api_resource_type: :project,
- xml_extractor_resource_type: :project
+ super id: id,
+ api_resource_type: :project,
+ xml_extractor_resource_type: :project
+ end
+
+ # Count of records available.
+ #
+ # @return [Fixnum]
+ def count
+ record_count :project
+ end
+
+ # Random record.
+ #
+ # @return [Puree::Model::Project, nil]
+ def random
+ super :project
end
end
end