lib/cointrader.net/client/request.rb
def extract_error_code response
      return unless response
      return unless response['data'] && response['data'].class == Hash
      return unless response['data']['errorCode']

      response['data']['errorCode'].to_i
    end
# Returns the error code from `response` or `nil` if there is none.
Returns the error code from `response` or `nil` if there is none.
Returns the error code from ` response ` or ` nil ` if there is none .
def extract_error_code response
      return unless response
      return unless response['data'] && response['data'].class == Hash
      return unless response['data']['errorCode']
      response['data']['errorCode'].to_i
    end
def extract_error_code response return unless response return unless response [ 'data' ] && response [ 'data' ] . class == Hash return unless response [ 'data' ] [ 'errorCode' ] response [ 'data' ] [ 'errorCode' ] . to_i end
Returns the error code from `response` or `nil` if there is none.
Returns the error code from ` response ` or ` nil ` if there is none .
response