Class: TFS::Changes

Inherits:
Queryable show all
Defined in:
lib/tfs/changes.rb

Constant Summary

Constants inherited from Queryable

Queryable::RecordNotFound

Constants included from ClassHelpers

TFS::ClassHelpers::SPECIAL_CASES

Class Method Summary collapse

Methods inherited from Queryable

inherited, odata_query

Methods included from ClassHelpers

#base_class, #method_name_from_class, #odata_class_from_method_name

Class Method Details

.all(changeset) ⇒ Object

Changes have to be scoped by changesets, so all requires we have a changeset id



6
7
8
# File 'lib/tfs/changes.rb', line 6

def all(changeset)
  TFS.changesets(changeset).changes
end

.find(changeset, path) ⇒ Object

Change can be found by changeset and path

TFS::Changes.find(123, '/path/to/change')


14
15
16
# File 'lib/tfs/changes.rb', line 14

def find(changeset, path)
  TFS.changes({changeset: changeset, path: path}).run.first
end