Class: ConventionalCommits::Configuration::ReleaseRule

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

Overview

Configuration for branch name policies

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ ReleaseRule

Returns a new instance of ReleaseRule.



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

def initialize(options = {})
  @types = options["types"] || []
  @version = options["version"] || "none"
end

Instance Attribute Details

#typesObject (readonly)

Returns the value of attribute types.



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

def types
  @types
end

#versionObject (readonly)

Returns the value of attribute version.



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

def version
  @version
end