Sha256: 64b0545f52b246169d7caf7cf0453672dd54cb8314fcfef26a448b502bf2dfd1
Contents?: true
Size: 958 Bytes
Versions: 14
Compression:
Stored size: 958 Bytes
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # ForbiddenRequest class. class ForbiddenRequestException < APIException SKIP = Object.new private_constant :SKIP # The message containing the reason behind the request being forbidden # @return [String] attr_accessor :message # The constructor. # @param [String] The reason for raising an exception. # @param [HttpResponse] The HttpReponse of the API call. def initialize(reason, response) super(reason, response) hash = APIHelper.json_deserialize(@response.raw_body) unbox(hash) end # Populates this object by extracting properties from a hash. # @param [Hash] The deserialized response sent by the server in the # response body. def unbox(hash) @message = hash.key?('Message') ? hash['Message'] : SKIP end end end
Version data entries
14 entries across 14 versions & 1 rubygems