Class: ConventionalCommits::Configuration::CommitConfiguration

Inherits:
Object
  • Object
show all
Defined in:
lib/models/commit_configuration.rb

Overview

Configuration for branch name policies

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ticket:, lowercase:, include_ticket_number:) ⇒ CommitConfiguration

Returns a new instance of CommitConfiguration.



9
10
11
12
13
# File 'lib/models/commit_configuration.rb', line 9

def initialize(ticket:, lowercase:, include_ticket_number:)
  @ticket_prefix = ticket
  @lowercase = lowercase
  @include_ticket_number = include_ticket_number
end

Instance Attribute Details

#include_ticket_numberObject (readonly)

Returns the value of attribute include_ticket_number.



7
8
9
# File 'lib/models/commit_configuration.rb', line 7

def include_ticket_number
  @include_ticket_number
end

#lowercaseObject (readonly)

Returns the value of attribute lowercase.



7
8
9
# File 'lib/models/commit_configuration.rb', line 7

def lowercase
  @lowercase
end

#ticket_prefixObject (readonly)

Returns the value of attribute ticket_prefix.



7
8
9
# File 'lib/models/commit_configuration.rb', line 7

def ticket_prefix
  @ticket_prefix
end