Class: FightClub::Config
- Inherits:
-
Object
- Object
- FightClub::Config
- Defined in:
- lib/fight_club/config.rb
Instance Attribute Summary collapse
-
#comment_check ⇒ Object
Returns the value of attribute comment_check.
-
#master_branch ⇒ Object
Returns the value of attribute master_branch.
-
#oauth ⇒ Object
Returns the value of attribute oauth.
-
#repo ⇒ Object
Returns the value of attribute repo.
-
#repo_name ⇒ Object
Returns the value of attribute repo_name.
-
#repos_directory ⇒ Object
Returns the value of attribute repos_directory.
-
#save_comment ⇒ Object
Returns the value of attribute save_comment.
-
#uri ⇒ Object
Returns the value of attribute uri.
Instance Method Summary collapse
-
#initialize ⇒ Config
constructor
A new instance of Config.
Constructor Details
#initialize ⇒ Config
Returns a new instance of Config.
7 8 9 10 11 12 13 14 15 16 |
# File 'lib/fight_club/config.rb', line 7 def initialize @repo = 'baxterthehacker/public-repo' @oauth = 'Not set' @repo_name = 'public-repo' @uri = '[email protected]:baxterthehacker/public-repo.git' @master_branch = 'master' @repos_directory = '/tmp' @comment_check = Proc.new { |pr, comment| false } @save_comment = Proc.new { |pr, comment| false } end |
Instance Attribute Details
#comment_check ⇒ Object
Returns the value of attribute comment_check.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def comment_check @comment_check end |
#master_branch ⇒ Object
Returns the value of attribute master_branch.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def master_branch @master_branch end |
#oauth ⇒ Object
Returns the value of attribute oauth.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def oauth @oauth end |
#repo ⇒ Object
Returns the value of attribute repo.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def repo @repo end |
#repo_name ⇒ Object
Returns the value of attribute repo_name.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def repo_name @repo_name end |
#repos_directory ⇒ Object
Returns the value of attribute repos_directory.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def repos_directory @repos_directory end |
#save_comment ⇒ Object
Returns the value of attribute save_comment.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def save_comment @save_comment end |
#uri ⇒ Object
Returns the value of attribute uri.
3 4 5 |
# File 'lib/fight_club/config.rb', line 3 def uri @uri end |