Exception: Legion::Extensions::Github::AuthorizationError
- Defined in:
- lib/legion/extensions/github/errors.rb
Instance Attribute Summary collapse
-
#attempted_sources ⇒ Object
readonly
Returns the value of attribute attempted_sources.
-
#owner ⇒ Object
readonly
Returns the value of attribute owner.
-
#repo ⇒ Object
readonly
Returns the value of attribute repo.
Instance Method Summary collapse
-
#initialize(message = 'No authorized credential available', owner: nil, repo: nil, attempted_sources: []) ⇒ AuthorizationError
constructor
A new instance of AuthorizationError.
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( = 'No authorized credential available', owner: nil, repo: nil, attempted_sources: []) @owner = owner @repo = repo @attempted_sources = attempted_sources super() end |
Instance Attribute Details
#attempted_sources ⇒ Object (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 |
#owner ⇒ Object (readonly)
Returns the value of attribute owner.
19 20 21 |
# File 'lib/legion/extensions/github/errors.rb', line 19 def owner @owner end |
#repo ⇒ Object (readonly)
Returns the value of attribute repo.
19 20 21 |
# File 'lib/legion/extensions/github/errors.rb', line 19 def repo @repo end |