Exception: Legion::Extensions::Github::ScopeDeniedError

Inherits:
Error
  • Object
show all
Defined in:
lib/legion/extensions/github/errors.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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(message = '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(message)
end

Instance Attribute Details

#auth_typeObject (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_fingerprintObject (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

#ownerObject (readonly)

Returns the value of attribute owner.



31
32
33
# File 'lib/legion/extensions/github/errors.rb', line 31

def owner
  @owner
end

#repoObject (readonly)

Returns the value of attribute repo.



31
32
33
# File 'lib/legion/extensions/github/errors.rb', line 31

def repo
  @repo
end