Sha256: e22e250504d28c9031badda60e8e9041b7f8169eeb165d7f82a0196d4ba477c2
Contents?: true
Size: 492 Bytes
Versions: 5
Compression:
Stored size: 492 Bytes
Contents
require 'commands/pick' module Commands class Card < Pick attr_accessor :story_id def type "story" end def plural_type "cards" end def branch_suffix if story.story_type == "bug" "bugfix" else story.story_type end end protected def story return @story if @story raise ArgumentError, "No story id was given!" unless story_id project.stories.find(story_id) end end end
Version data entries
5 entries across 5 versions & 2 rubygems