Class: Cp8Cli::BranchName

Inherits:
Object
  • Object
show all
Defined in:
lib/cp8_cli/branch_name.rb

Instance Method Summary collapse

Constructor Details

#initialize(user:, target:, title:, short_link: nil) ⇒ BranchName

Returns a new instance of BranchName.



3
4
5
6
7
8
# File 'lib/cp8_cli/branch_name.rb', line 3

def initialize(user:, target:, title:, short_link: nil)
  @user = user
  @target = target
  @title = title
  @short_link = short_link
end

Instance Method Details

#to_sObject



10
11
12
# File 'lib/cp8_cli/branch_name.rb', line 10

def to_s
  parts.join(".")
end