Class: Dependabot::PullRequestCreator::Message

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



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

Instance Attribute Details

#commit_messageObject (readonly)

Returns the value of attribute commit_message.



7
8
9
# File 'lib/dependabot/pull_request_creator/message.rb', line 7

def commit_message
  @commit_message
end

#pr_messageObject (readonly)

Returns the value of attribute pr_message.



7
8
9
# File 'lib/dependabot/pull_request_creator/message.rb', line 7

def pr_message
  @pr_message
end

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