Class: Commands::Card

Inherits:
Pick show all
Defined in:
lib/commands/card.rb

Instance Attribute Summary collapse

Attributes inherited from Base

#input, #options, #output

Instance Method Summary collapse

Methods inherited from Pick

#run!

Methods inherited from Base

#get, #initialize, #put, #run!, #sys, #with

Constructor Details

This class inherits a constructor from Commands::Base

Instance Attribute Details

#story_idObject

Returns the value of attribute story_id.



5
6
7
# File 'lib/commands/card.rb', line 5

def story_id
  @story_id
end

Instance Method Details

#branch_suffixObject



15
16
17
18
19
20
21
# File 'lib/commands/card.rb', line 15

def branch_suffix
  if story.story_type == "bug"
    "bugfix"
  else
    story.story_type
  end
end

#plural_typeObject



11
12
13
# File 'lib/commands/card.rb', line 11

def plural_type
  "cards"
end

#typeObject



7
8
9
# File 'lib/commands/card.rb', line 7

def type
  "story"
end