Class: GitFlower::Branch
- Inherits:
-
Object
- Object
- GitFlower::Branch
- Defined in:
- lib/git_flower/branch.rb
Instance Method Summary collapse
-
#initialize(name:, id:, type:) ⇒ Branch
constructor
A new instance of Branch.
- #name ⇒ Object
Constructor Details
#initialize(name:, id:, type:) ⇒ Branch
Returns a new instance of Branch.
3 4 5 6 7 |
# File 'lib/git_flower/branch.rb', line 3 def initialize(name:, id:, type:) @story_name = name @story_id = id @type = type end |
Instance Method Details
#name ⇒ Object
9 10 11 |
# File 'lib/git_flower/branch.rb', line 9 def name Shellwords.shellescape("#{type}/#{story_id}-#{story_name.parameterize}") end |