Class: Dependabot::PullRequestCreator::Message
- Inherits:
-
Object
- Object
- Dependabot::PullRequestCreator::Message
- Extended by:
- T::Sig
- Defined in:
- lib/dependabot/pull_request_creator/message.rb
Overview
Message is a static alternative to MessageBuilder
Instance Attribute Summary collapse
-
#commit_message ⇒ Object
readonly
Returns the value of attribute commit_message.
-
#pr_message ⇒ Object
readonly
Returns the value of attribute pr_message.
-
#pr_name ⇒ Object
readonly
Returns the value of attribute pr_name.
Instance Method Summary collapse
-
#initialize(commit_message: nil, pr_name: nil, pr_message: nil) ⇒ Message
constructor
A new instance of Message.
Constructor Details
#initialize(commit_message: nil, pr_name: nil, pr_message: nil) ⇒ Message
Returns a new instance of Message.
29 30 31 32 33 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 29 def initialize(commit_message: nil, pr_name: nil, pr_message: nil) @commit_message = @pr_name = pr_name @pr_message = end |
Instance Attribute Details
#commit_message ⇒ Object (readonly)
Returns the value of attribute commit_message.
13 14 15 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 13 def @commit_message end |
#pr_message ⇒ Object (readonly)
Returns the value of attribute pr_message.
19 20 21 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 19 def @pr_message end |
#pr_name ⇒ Object (readonly)
Returns the value of attribute pr_name.
16 17 18 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 16 def pr_name @pr_name end |