Class: Scrab::Rally

Inherits:
Object
  • Object
show all
Defined in:
lib/scrab/rally.rb

Defined Under Namespace

Classes: ProjectNotFoundError, StoryNotFoundError

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Rally

Returns a new instance of Rally.



14
15
16
17
18
# File 'lib/scrab/rally.rb', line 14

def initialize(options)
  @conn    = RallyRestAPI.new(options)
  @project = @conn.find(:project, :pagesize => 1) { equal :name, options[:project] }.first
  raise ProjectNotFoundError.new(@project) if @project.nil?
end

Instance Method Details

#update(story) ⇒ Object



20
21
22
# File 'lib/scrab/rally.rb', line 20

def update(story)
  update_story(story)
end