Class: ConventionalCommits::Configuration::CommitConfiguration
- Inherits:
-
Object
- Object
- ConventionalCommits::Configuration::CommitConfiguration
- Defined in:
- lib/models/commit_configuration.rb
Overview
Configuration for branch name policies
Instance Attribute Summary collapse
-
#include_ticket_number ⇒ Object
readonly
Returns the value of attribute include_ticket_number.
-
#lowercase ⇒ Object
readonly
Returns the value of attribute lowercase.
-
#ticket_prefix ⇒ Object
readonly
Returns the value of attribute ticket_prefix.
Instance Method Summary collapse
-
#initialize(ticket:, lowercase:, include_ticket_number:) ⇒ CommitConfiguration
constructor
A new instance of CommitConfiguration.
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_number ⇒ Object (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 |
#lowercase ⇒ Object (readonly)
Returns the value of attribute lowercase.
7 8 9 |
# File 'lib/models/commit_configuration.rb', line 7 def lowercase @lowercase end |
#ticket_prefix ⇒ Object (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 |