Class: TFS::AreaPaths
Constant Summary
Constants inherited from Queryable
Constants included from ClassHelpers
Class Method Summary collapse
-
.find(area_path) ⇒ Object
Changeset can be found by id alone.
Methods inherited from Queryable
Methods included from ClassHelpers
#base_class, #method_name_from_class, #odata_class_from_method_name
Class Method Details
.find(area_path) ⇒ Object
8 9 10 11 12 13 14 |
# File 'lib/tfs/area_paths.rb', line 8 def find(area_path) begin TFS.areapaths(area_path).run.first rescue RestClient::ResourceNotFound => e raise Queryable::RecordNotFound, "No record found for '#{area_path}'" end end |