Exception: Authz::Scopables::Base::UnresolvableKeyword
- Inherits:
-
StandardError
- Object
- StandardError
- Authz::Scopables::Base::UnresolvableKeyword
- Defined in:
- lib/authz/scopables/base.rb
Overview
Raised when the .resolve_keyword method returns invalid output
Instance Attribute Summary collapse
- #keyword ⇒ Object readonly
- #requester ⇒ Object readonly
- #scopable ⇒ Object readonly
Instance Method Summary collapse
-
#initialize(options = {}) ⇒ UnresolvableKeyword
constructor
A new instance of UnresolvableKeyword.
Constructor Details
#initialize(options = {}) ⇒ UnresolvableKeyword
Returns a new instance of UnresolvableKeyword.
145 146 147 148 149 150 151 152 153 |
# File 'lib/authz/scopables/base.rb', line 145 def initialize( = {}) scopable = .fetch(:scopable) keyword = .fetch(:keyword) requester = .fetch(:requester) = "Unresolvable keyword '#{keyword}' with requester" \ "#{requester} in #{scopable}. Make sure that " \ '.resolve_keyword returns an array. e.g. [2, 5, nil]' super() end |
Instance Attribute Details
#keyword ⇒ Object (readonly)
143 144 145 |
# File 'lib/authz/scopables/base.rb', line 143 def keyword @keyword end |
#requester ⇒ Object (readonly)
143 144 145 |
# File 'lib/authz/scopables/base.rb', line 143 def requester @requester end |
#scopable ⇒ Object (readonly)
143 144 145 |
# File 'lib/authz/scopables/base.rb', line 143 def scopable @scopable end |