Class: Dependabot::PullRequestCreator::Message
- Inherits:
-
Object
- Object
- Dependabot::PullRequestCreator::Message
- 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.
9 10 11 12 13 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 9 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.
7 8 9 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 7 def @commit_message end |
#pr_message ⇒ Object (readonly)
Returns the value of attribute pr_message.
7 8 9 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 7 def @pr_message end |
#pr_name ⇒ Object (readonly)
Returns the value of attribute pr_name.
7 8 9 |
# File 'lib/dependabot/pull_request_creator/message.rb', line 7 def pr_name @pr_name end |