Class: OpenGithubIssue::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/open_github_issue/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

Returns a new instance of Configuration.



7
8
9
10
11
# File 'lib/open_github_issue/configuration.rb', line 7

def initialize
  self.user_method = :current_user
  self.user_name_method = :email
  self.constraint = proc { |user| user }
end

Instance Attribute Details

#constraintObject

Returns the value of attribute constraint.



5
6
7
# File 'lib/open_github_issue/configuration.rb', line 5

def constraint
  @constraint
end

#github_access_tokenObject

Returns the value of attribute github_access_token.



5
6
7
# File 'lib/open_github_issue/configuration.rb', line 5

def github_access_token
  @github_access_token
end

#github_repoObject

Returns the value of attribute github_repo.



5
6
7
# File 'lib/open_github_issue/configuration.rb', line 5

def github_repo
  @github_repo
end

#user_methodObject

Returns the value of attribute user_method.



5
6
7
# File 'lib/open_github_issue/configuration.rb', line 5

def user_method
  @user_method
end

#user_name_methodObject

Returns the value of attribute user_name_method.



5
6
7
# File 'lib/open_github_issue/configuration.rb', line 5

def user_name_method
  @user_name_method
end