Class: ConventionalCommits::Configuration::MainConfiguration

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

Overview

Configuration for branch name policies

Instance Attribute Summary collapse

Instance Method Summary collapse

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(options = {})
  @release = ReleaseConfiguration.new(options["release"] || {})
  @branch = BranchConfiguration.new(options["branch"] || {})
  @type = TypeConfiguration.new(options["type"] || {})
end

Instance Attribute Details

#branchObject (readonly)

Returns the value of attribute branch.



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

def branch
  @branch
end

#releaseObject (readonly)

Returns the value of attribute release.



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

def release
  @release
end

#typeObject (readonly)

Returns the value of attribute type.



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

def type
  @type
end