Exception: Legion::Extensions::Github::AuthorizationError

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 = 'No authorized credential available', owner: nil, repo: nil, attempted_sources: []) ⇒ AuthorizationError

Returns a new instance of AuthorizationError.



21
22
23
24
25
26
27
# File 'lib/legion/extensions/github/errors.rb', line 21

def initialize(message = 'No authorized credential available', owner: nil, repo: nil,
               attempted_sources: [])
  @owner = owner
  @repo = repo
  @attempted_sources = attempted_sources
  super(message)
end

Instance Attribute Details

#attempted_sourcesObject (readonly)

Returns the value of attribute attempted_sources.



19
20
21
# File 'lib/legion/extensions/github/errors.rb', line 19

def attempted_sources
  @attempted_sources
end

#ownerObject (readonly)

Returns the value of attribute owner.



19
20
21
# File 'lib/legion/extensions/github/errors.rb', line 19

def owner
  @owner
end

#repoObject (readonly)

Returns the value of attribute repo.



19
20
21
# File 'lib/legion/extensions/github/errors.rb', line 19

def repo
  @repo
end