Class: Hoptoad::Project
Class Method Summary collapse
Class Method Details
.collection_path ⇒ Object
14 15 16 |
# File 'lib/hoptoad-api/project.rb', line 14 def self.collection_path '/data_api/v1/projects.xml' end |
.find(*args) ⇒ Object
4 5 6 7 8 9 10 11 12 |
# File 'lib/hoptoad-api/project.rb', line 4 def self.find(*args) setup = args. results = fetch(collection_path, ) raise HoptoadError.new(results.errors.error) if results.errors results.projects.project end |