lib/helpers/sprintly.rb in overview-0.0.7.pre.26 vs lib/helpers/sprintly.rb in overview-0.0.8.pre.28

- old
+ new

@@ -30,17 +30,17 @@ attr_accessor :title attr_accessor :date attr_accessor :description attr_accessor :source + attr_accessor :type attr_accessor :author attr_accessor :id attr_accessor :hackpads attr_accessor :url attr_accessor :parent - HACKPADURL = "hackpad.com" def initialize(json) type ||="NA" @@ -97,9 +97,12 @@ def released? return self.environments.join.scan(/v(\d+)/).any? unless self.environments.nil? end + def is_defect? + return @type.upcase == "DEFECT" + end def is_story? return @type.upcase == "STORY" end def all_hackpads