Class: Neetob::CLI::Github::MakePr::Base
- Defined in:
- lib/neetob/cli/github/make_pr/base.rb
Direct Known Subclasses
Constant Summary collapse
- BRANCH_NAME =
"neeto_compliance"
- PR_TITLE =
"Neeto Compliance"
Constants inherited from Base
Instance Attribute Summary collapse
-
#branch_name ⇒ Object
Returns the value of attribute branch_name.
-
#pr_title ⇒ Object
Returns the value of attribute pr_title.
Attributes inherited from Base
Attributes inherited from Base
Instance Method Summary collapse
-
#initialize(pr_title = PR_TITLE, branch_name = BRANCH_NAME) ⇒ Base
constructor
A new instance of Base.
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_name ⇒ Object
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_title ⇒ Object
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 |