Class: ConventionalCommits::Configuration::MainConfiguration
- Inherits:
-
Object
- Object
- ConventionalCommits::Configuration::MainConfiguration
- Defined in:
- lib/models/main_configuration.rb
Overview
Configuration for branch name policies
Instance Attribute Summary collapse
-
#branch ⇒ Object
readonly
Returns the value of attribute branch.
-
#release ⇒ Object
readonly
Returns the value of attribute release.
-
#type ⇒ Object
readonly
Returns the value of attribute type.
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ MainConfiguration
constructor
A new instance of MainConfiguration.
Constructor Details
#initialize(options = {}) ⇒ MainConfiguration
Returns a new instance of MainConfiguration.
11 12 13 14 15 |
# File 'lib/models/main_configuration.rb', line 11 def initialize( = {}) @release = ReleaseConfiguration.new(["release"] || {}) @branch = BranchConfiguration.new(["branch"] || {}) @type = TypeConfiguration.new(["type"] || {}) end |
Instance Attribute Details
#branch ⇒ Object (readonly)
Returns the value of attribute branch.
7 8 9 |
# File 'lib/models/main_configuration.rb', line 7 def branch @branch end |
#release ⇒ Object (readonly)
Returns the value of attribute release.
7 8 9 |
# File 'lib/models/main_configuration.rb', line 7 def release @release end |
#type ⇒ Object (readonly)
Returns the value of attribute type.
7 8 9 |
# File 'lib/models/main_configuration.rb', line 7 def type @type end |