Class: FightClub::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/fight_club/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

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_checkObject

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_branchObject

Returns the value of attribute master_branch.



3
4
5
# File 'lib/fight_club/config.rb', line 3

def master_branch
  @master_branch
end

#oauthObject

Returns the value of attribute oauth.



3
4
5
# File 'lib/fight_club/config.rb', line 3

def oauth
  @oauth
end

#repoObject

Returns the value of attribute repo.



3
4
5
# File 'lib/fight_club/config.rb', line 3

def repo
  @repo
end

#repo_nameObject

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_directoryObject

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_commentObject

Returns the value of attribute save_comment.



3
4
5
# File 'lib/fight_club/config.rb', line 3

def save_comment
  @save_comment
end

#uriObject

Returns the value of attribute uri.



3
4
5
# File 'lib/fight_club/config.rb', line 3

def uri
  @uri
end