Exception: ApiAiWrapper::Errors::Engine::MissingToken
- Defined in:
- lib/api_ai_wrapper/errors.rb
Instance Attribute Summary collapse
-
#code ⇒ Object
readonly
Returns the value of attribute code.
Instance Method Summary collapse
-
#initialize(message = nil) ⇒ MissingToken
constructor
A new instance of MissingToken.
Methods inherited from Error
Constructor Details
#initialize(message = nil) ⇒ MissingToken
Returns a new instance of MissingToken.
19 20 21 22 |
# File 'lib/api_ai_wrapper/errors.rb', line 19 def initialize( = nil) @message = || "Unauthorized call." @code = 401 end |
Instance Attribute Details
#code ⇒ Object (readonly)
Returns the value of attribute code.
17 18 19 |
# File 'lib/api_ai_wrapper/errors.rb', line 17 def code @code end |