Exception: ThreeScale::Backend::ReferrerNotAllowed
- Defined in:
- lib/3scale/backend/errors.rb
Instance Method Summary collapse
-
#initialize(referrer) ⇒ ReferrerNotAllowed
constructor
A new instance of ReferrerNotAllowed.
Methods inherited from Error
#code, code, #http_code, #to_xml, underscore
Constructor Details
#initialize(referrer) ⇒ ReferrerNotAllowed
Returns a new instance of ReferrerNotAllowed.
146 147 148 149 150 151 152 |
# File 'lib/3scale/backend/errors.rb', line 146 def initialize(referrer) if referrer.blank? super 'referrer is missing'.freeze else super %(referrer "#{referrer}" is not allowed) end end |