Exception: WitBot::WitError

Inherits:
WitBotError show all
Defined in:
lib/wit_bot/errors/wit_error.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status) ⇒ WitError

Returns a new instance of WitError.



5
6
7
# File 'lib/wit_bot/errors/wit_error.rb', line 5

def initialize(status)
  @status = status
end

Instance Attribute Details

#statusObject (readonly)

Returns the value of attribute status.



3
4
5
# File 'lib/wit_bot/errors/wit_error.rb', line 3

def status
  @status
end