Exception: Legion::Extensions::Github::ScopeDeniedError
- Defined in:
- lib/legion/extensions/github/errors.rb
Instance Attribute Summary collapse
-
#auth_type ⇒ Object
readonly
Returns the value of attribute auth_type.
-
#credential_fingerprint ⇒ Object
readonly
Returns the value of attribute credential_fingerprint.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize(message = 'Credential not authorized for this scope', owner: nil, repo: nil, credential_fingerprint: nil, auth_type: nil) ⇒ ScopeDeniedError
constructor
A new instance of ScopeDeniedError.
Constructor Details
#initialize(message = 'Credential not authorized for this scope', owner: nil, repo: nil, credential_fingerprint: nil, auth_type: nil) ⇒ ScopeDeniedError
Returns a new instance of ScopeDeniedError.
33 34 35 36 37 38 39 40 |
# File 'lib/legion/extensions/github/errors.rb', line 33 def initialize( = 'Credential not authorized for this scope', owner: nil, repo: nil, credential_fingerprint: nil, auth_type: nil) @owner = owner @repo = repo @credential_fingerprint = credential_fingerprint @auth_type = auth_type super() end |
Instance Attribute Details
#auth_type ⇒ Object (readonly)
Returns the value of attribute auth_type.
31 32 33 |
# File 'lib/legion/extensions/github/errors.rb', line 31 def auth_type @auth_type end |
#credential_fingerprint ⇒ Object (readonly)
Returns the value of attribute credential_fingerprint.
31 32 33 |
# File 'lib/legion/extensions/github/errors.rb', line 31 def credential_fingerprint @credential_fingerprint end |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
31 32 33 |
# File 'lib/legion/extensions/github/errors.rb', line 31 def owner @owner end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
31 32 33 |
# File 'lib/legion/extensions/github/errors.rb', line 31 def repo @repo end |