Class: Dependabot::PullRequestCreator::Message

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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 = commit_message
  @pr_name = pr_name
  @pr_message = pr_message
end

Instance Attribute Details

#commit_messageObject (readonly)

Returns the value of attribute commit_message.



13
14
15
# File 'lib/dependabot/pull_request_creator/message.rb', line 13

def commit_message
  @commit_message
end

#pr_messageObject (readonly)

Returns the value of attribute pr_message.



19
20
21
# File 'lib/dependabot/pull_request_creator/message.rb', line 19

def pr_message
  @pr_message
end

#pr_nameObject (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