Class: PivotalAPI::Iteration

Inherits:
Base
  • Object
show all
Defined in:
lib/pivotal-tracker-api/iteration.rb

Direct Known Subclasses

Iterations

Instance Attribute Summary collapse

Class Method Summary collapse

Methods inherited from Base

#initialize, #to_json

Constructor Details

This class inherits a constructor from PivotalAPI::Base

Instance Attribute Details

#analyticsObject

Returns the value of attribute analytics.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def analytics
  @analytics
end

#effective_pointsObject

Returns the value of attribute effective_points.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def effective_points
  @effective_points
end

#finishObject

Returns the value of attribute finish.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def finish
  @finish
end

#kindObject

Returns the value of attribute kind.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def kind
  @kind
end

#lengthObject

Returns the value of attribute length.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def length
  @length
end

#numberObject

Returns the value of attribute number.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def number
  @number
end

#pointsObject

Returns the value of attribute points.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def points
  @points
end

#project_idObject

Returns the value of attribute project_id.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def project_id
  @project_id
end

#startObject

Returns the value of attribute start.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def start
  @start
end

#storiesObject

Returns the value of attribute stories.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def stories
  @stories
end

#story_idsObject

Returns the value of attribute story_ids.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def story_ids
  @story_ids
end

#team_strengthObject

Returns the value of attribute team_strength.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def team_strength
  @team_strength
end

#velocityObject

Returns the value of attribute velocity.



47
48
49
# File 'lib/pivotal-tracker-api/iteration.rb', line 47

def velocity
  @velocity
end

Class Method Details

.fieldsObject



50
51
52
53
# File 'lib/pivotal-tracker-api/iteration.rb', line 50

def self.fields
  ['velocity', 'points', 'effective_points', 'analytics', "stories(#{Story.fields.join(',')})", 'team_strength', 
   'project_id', 'length', 'start', 'finish']
end

.from_json(json) ⇒ Object



55
56
57
# File 'lib/pivotal-tracker-api/iteration.rb', line 55

def self.from_json(json)
  parse_json_iteration(json)
end