Class: ConventionalCommits::Configuration::ReleaseRule
- Inherits:
-
Object
- Object
- ConventionalCommits::Configuration::ReleaseRule
- Defined in:
- lib/models/release_rule.rb
Overview
Configuration for branch name policies
Instance Attribute Summary collapse
-
#types ⇒ Object
readonly
Returns the value of attribute types.
-
#version ⇒ Object
readonly
Returns the value of attribute version.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ ReleaseRule
constructor
A new instance of ReleaseRule.
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( = {}) @types = ["types"] || [] @version = ["version"] || "none" end |
Instance Attribute Details
#types ⇒ Object (readonly)
Returns the value of attribute types.
7 8 9 |
# File 'lib/models/release_rule.rb', line 7 def types @types end |
#version ⇒ Object (readonly)
Returns the value of attribute version.
7 8 9 |
# File 'lib/models/release_rule.rb', line 7 def version @version end |