Class: Neetob::CLI::Github::MakePr::Base

Inherits:
Base
  • Object
show all
Defined in:
lib/neetob/cli/github/make_pr/base.rb

Direct Known Subclasses

Brakeman, Gems::Release, ComplianceFix, Script, Search

Constant Summary collapse

BRANCH_NAME =
"neeto_compliance"
PR_TITLE =
"Neeto Compliance"

Constants inherited from Base

Base::NEETO_APPS_LIST_LINK

Instance Attribute Summary collapse

Attributes inherited from Base

#client

Attributes inherited from Base

#ui

Instance Method Summary collapse

Methods included from Utils

#camel_case_to_slug, #is_upper?, #symbolize_keys

Constructor Details

#initialize(pr_title = PR_TITLE, branch_name = BRANCH_NAME) ⇒ Base

Returns a new instance of Base.



14
15
16
17
18
# File 'lib/neetob/cli/github/make_pr/base.rb', line 14

def initialize(pr_title = PR_TITLE, branch_name = BRANCH_NAME)
  super()
  @branch_name = branch_name || BRANCH_NAME
  @pr_title = pr_title || PR_TITLE
end

Instance Attribute Details

#branch_nameObject

Returns the value of attribute branch_name.



12
13
14
# File 'lib/neetob/cli/github/make_pr/base.rb', line 12

def branch_name
  @branch_name
end

#pr_titleObject

Returns the value of attribute pr_title.



12
13
14
# File 'lib/neetob/cli/github/make_pr/base.rb', line 12

def pr_title
  @pr_title
end