Class: Dependabot::PullRequestCreator::BranchNamer::Base
- Inherits:
-
Object
- Object
- Dependabot::PullRequestCreator::BranchNamer::Base
- Defined in:
- lib/dependabot/pull_request_creator/branch_namer/base.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#dependencies ⇒ Object
readonly
Returns the value of attribute dependencies.
-
#files ⇒ Object
readonly
Returns the value of attribute files.
-
#max_length ⇒ Object
readonly
Returns the value of attribute max_length.
-
#prefix ⇒ Object
readonly
Returns the value of attribute prefix.
-
#separator ⇒ Object
readonly
Returns the value of attribute separator.
-
#target_branch ⇒ Object
readonly
Returns the value of attribute target_branch.
Instance Method Summary collapse
-
#initialize(dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil) ⇒ Base
constructor
A new instance of Base.
Constructor Details
#initialize(dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil) ⇒ Base
Returns a new instance of Base.
10 11 12 13 14 15 16 17 18 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 10 def initialize(dependencies:, files:, target_branch:, separator: "/", prefix: "dependabot", max_length: nil) @dependencies = dependencies @files = files @target_branch = target_branch @separator = separator @prefix = prefix @max_length = max_length end |
Instance Attribute Details
#dependencies ⇒ Object (readonly)
Returns the value of attribute dependencies.
8 9 10 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 8 def dependencies @dependencies end |
#files ⇒ Object (readonly)
Returns the value of attribute files.
8 9 10 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 8 def files @files end |
#max_length ⇒ Object (readonly)
Returns the value of attribute max_length.
8 9 10 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 8 def max_length @max_length end |
#prefix ⇒ Object (readonly)
Returns the value of attribute prefix.
8 9 10 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 8 def prefix @prefix end |
#separator ⇒ Object (readonly)
Returns the value of attribute separator.
8 9 10 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 8 def separator @separator end |
#target_branch ⇒ Object (readonly)
Returns the value of attribute target_branch.
8 9 10 |
# File 'lib/dependabot/pull_request_creator/branch_namer/base.rb', line 8 def target_branch @target_branch end |