Class: Pivotal::Story
- Inherits:
-
Base
- Object
- Base
- Pivotal::Story
show all
- Defined in:
- lib/pivotal/story.rb
Instance Attribute Summary
Attributes inherited from Base
#resource, #xml
Instance Method Summary
collapse
Methods inherited from Base
#initialize, name_as_xml_attribute, #parsed_resource, #update_attributes, xpath
Methods included from Attributes
included
included
Constructor Details
This class inherits a constructor from Pivotal::Base
Instance Method Details
#bug? ⇒ Boolean
18
19
20
|
# File 'lib/pivotal/story.rb', line 18
def bug?
story_type == "bug"
end
|
#chore? ⇒ Boolean
22
23
24
|
# File 'lib/pivotal/story.rb', line 22
def chore?
story_type == "chore"
end
|
#feature? ⇒ Boolean
14
15
16
|
# File 'lib/pivotal/story.rb', line 14
def feature?
story_type == "feature"
end
|
#release? ⇒ Boolean
26
27
28
|
# File 'lib/pivotal/story.rb', line 26
def release?
story_type == "release"
end
|
#start!(options = {}) ⇒ Object
8
9
10
11
12
|
# File 'lib/pivotal/story.rb', line 8
def start!(options = {})
return false if feature? && unestimated?
update_attributes(options.merge(:current_state => :started))
end
|
#unestimated? ⇒ Boolean
30
31
32
|
# File 'lib/pivotal/story.rb', line 30
def unestimated?
estimate == "unestimated"
end
|