Sha256: 42a00c7cad34ae23f7ad1ba810a63edd3cb0e92648eab88590ca96478a623f0a
Contents?: true
Size: 1.1 KB
Versions: 25
Compression:
Stored size: 1.1 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # ApiErrorResponse class. class ApiErrorResponseException < APIException # TODO: Write general description for this method # @return [String] attr_accessor :type # TODO: Write general description for this method # @return [String] attr_accessor :description # TODO: Write general description for this method # @return [String] attr_accessor :id # 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) @type = hash['type'] @description = hash['description'] @id = hash['id'] end end end
Version data entries
25 entries across 25 versions & 1 rubygems