Class: VSTS::Change

Inherits:
BaseModel show all
Defined in:
lib/vsts/change.rb

Overview

Change model

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from BaseModel

#underscore

Constructor Details

#initialize(h = {}) ⇒ Change



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_typeObject

Returns the value of attribute change_type.



5
6
7
# File 'lib/vsts/change.rb', line 5

def change_type
  @change_type
end

#itemObject

Returns the value of attribute item.



5
6
7
# File 'lib/vsts/change.rb', line 5

def item
  @item
end