Sha256: 580a6710ad926550693c1ff3b3dcddbf5a7319909c2b9cb69cf642c983fe4d44
Contents?: true
Size: 957 Bytes
Versions: 14
Compression:
Stored size: 957 Bytes
Contents
# bandwidth # # This file was automatically generated by APIMATIC v2.0 # ( https://apimatic.io ). module Bandwidth # Accounts Tnlookup 400 Error class. class AccountsTnlookup400ErrorException < APIException SKIP = Object.new private_constant :SKIP # A description of what validation error occurred. # @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