class BWAPI::Response::Error
Brandwatch response middleware to handle errors
Constants
- ERROR_MAP
Public Instance Methods
on_complete(response)
click to toggle source
# File lib/bwapi/response/error.rb, line 22 def on_complete(response) key = response[:status].to_i fail ERROR_MAP[key].new(response) if ERROR_MAP.key? key end