Class: GitFlower::Branch

Inherits:
Object
  • Object
show all
Defined in:
lib/git_flower/branch.rb

Instance Method Summary collapse

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

#nameObject



9
10
11
# File 'lib/git_flower/branch.rb', line 9

def name
  Shellwords.shellescape("#{type}/#{story_id}-#{story_name.parameterize}")
end