Class: OpenGithubIssue::Configuration
- Inherits:
-
Object
- Object
- OpenGithubIssue::Configuration
- Defined in:
- lib/open_github_issue/configuration.rb
Instance Attribute Summary collapse
-
#constraint ⇒ Object
Returns the value of attribute constraint.
-
#github_access_token ⇒ Object
Returns the value of attribute github_access_token.
-
#github_repo ⇒ Object
Returns the value of attribute github_repo.
-
#user_method ⇒ Object
Returns the value of attribute user_method.
-
#user_name_method ⇒ Object
Returns the value of attribute user_name_method.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
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
#constraint ⇒ Object
Returns the value of attribute constraint.
5 6 7 |
# File 'lib/open_github_issue/configuration.rb', line 5 def constraint @constraint end |
#github_access_token ⇒ Object
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_repo ⇒ Object
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_method ⇒ Object
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_method ⇒ Object
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 |