lib/raas/exceptions/raas_server_exception.rb
def unbox(hash)
      @timestamp = APIHelper.rfc3339(hash['timestamp']) if hash['timestamp']
      @request_id = hash['requestId']
      @path = hash['path']
      @http_code = hash['httpCode']
      @http_phrase = hash['httpPhrase']
      # Parameter is an array, so we need to iterate through it
      @errors = nil
      unless hash['errors'].nil?
        @errors = []
        hash['errors'].each do |structure|
          @errors << (RaasServerErrorModel.from_hash(structure) if structure)
        end
      end
    end
# Populates this object by extracting properties from a hash.
# @param [Hash] The deserialized response sent by the server in the
# response body.

Populates this object by extracting properties from a hash.
Populates this object by extracting properties from a hash .
def unbox(hash)
      @timestamp = APIHelper.rfc3339(hash['timestamp']) if hash['timestamp']
      @request_id = hash['requestId']
      @path = hash['path']
      @http_code = hash['httpCode']
      @http_phrase = hash['httpPhrase']
      @errors = nil
      unless hash['errors'].nil?
        @errors = []
        hash['errors'].each do |structure|
          @errors << (RaasServerErrorModel.from_hash(structure) if structure)
        end
      end
    end
def unbox ( hash ) @timestamp = APIHelper . rfc3339 ( hash [ 'timestamp' ] ) if hash [ 'timestamp' ] @request_id = hash [ 'requestId' ] @path = hash [ 'path' ] @http_code = hash [ 'httpCode' ] @http_phrase = hash [ 'httpPhrase' ] @errors = nil unless hash [ 'errors' ] . nil? @errors = [ ] hash [ 'errors' ] . each do | structure | @errors << ( RaasServerErrorModel . from_hash ( structure ) if structure ) end end end
Populates this object by extracting properties from a hash.
Populates this object by extracting properties from a hash .
# Parameter is an array, so we need to iterate through it

hash
The deserialized response sent by the server in the response body.
The deserialized response sent by the server in the response body .