Class: Scrab::Rally
- Inherits:
-
Object
- Object
- Scrab::Rally
- Defined in:
- lib/scrab/rally.rb
Defined Under Namespace
Classes: ProjectNotFoundError, StoryNotFoundError
Instance Method Summary collapse
-
#initialize(options) ⇒ Rally
constructor
A new instance of Rally.
- #update(story) ⇒ Object
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() @conn = RallyRestAPI.new() @project = @conn.find(:project, :pagesize => 1) { equal :name, [: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 |