Sha256: 93e41dc48db96061e1c61802708f79de0055667b305b3389fd8cee1b4f50439c
Contents?: true
Size: 1.08 KB
Versions: 14
Compression:
Stored size: 1.08 KB
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # MessagingException class. class MessagingException < APIException SKIP = Object.new private_constant :SKIP # 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.key?('type') ? hash['type'] : SKIP @description = hash.key?('description') ? hash['description'] : SKIP end end end
Version data entries
14 entries across 14 versions & 1 rubygems