Class: PivotalAPI::StoryTransitions

Inherits:
StoryTransition show all
Defined in:
lib/pivotal-tracker-api/story_transition.rb

Instance Attribute Summary

Attributes inherited from StoryTransition

#kind, #occurred_at, #performed_by_id, #project_id, #project_version, #state, #story_id

Class Method Summary collapse

Methods inherited from StoryTransition

parse_json_story_transition

Methods inherited from Base

#initialize, #to_json

Constructor Details

This class inherits a constructor from PivotalAPI::Base

Class Method Details

.from_json(json) ⇒ Object



67
68
69
70
# File 'lib/pivotal-tracker-api/story_transition.rb', line 67

def from_json(json)
  return nil unless json
  parse_json_story_transitions(json)
end

.parse_json_story_transitions(story_transitions) ⇒ Object



72
73
74
75
76
# File 'lib/pivotal-tracker-api/story_transition.rb', line 72

def parse_json_story_transitions(story_transitions)
  transitions = []
  story_transitions.each { |transition| transitions << parse_json_story_transition(transition) }
  transitions
end