Class: VSTS::Change
Overview
Change model
Instance Attribute Summary collapse
-
#change_type ⇒ Object
Returns the value of attribute change_type.
-
#item ⇒ Object
Returns the value of attribute item.
Instance Method Summary collapse
-
#initialize(h = {}) ⇒ Change
constructor
Create new change instance from a hash See https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/changesets#get-list-of-changes-in-a-changeset.
Methods inherited from BaseModel
Constructor Details
#initialize(h = {}) ⇒ Change
Create new change instance from a hash See https://www.visualstudio.com/en-us/docs/integrate/api/tfvc/changesets#get-list-of-changes-in-a-changeset
11 12 13 14 |
# File 'lib/vsts/change.rb', line 11 def initialize(h = {}) @change_type = h["changeType"] @item = Item.new(h["item"]) end |
Instance Attribute Details
#change_type ⇒ Object
Returns the value of attribute change_type.
5 6 7 |
# File 'lib/vsts/change.rb', line 5 def change_type @change_type end |
#item ⇒ Object
Returns the value of attribute item.
5 6 7 |
# File 'lib/vsts/change.rb', line 5 def item @item end |