Sha256: d30de200fdaa94112c884ffd4458303d9f55dcc6b21efa5308859d29de42bbc9
Contents?: true
Size: 995 Bytes
Versions: 25
Compression:
Stored size: 995 Bytes
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # MessagingException class. class MessagingException < 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 # 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'] end end end
Version data entries
25 entries across 25 versions & 1 rubygems