lib/teamdrive_api/base.rb
def return_or_fail(response)
      return response if response[:exception].nil?
      fail TeamdriveApi::Error.new response[:exception][:primarycode],
                                   response[:exception][:secondarycode],
                                   response[:exception][:message]
    end
# raise TeamdriveApi::Error if +response+ contains an exception, return
# +response+ otherwise
raise TeamdriveApi::Error if +response+ contains an exception, return
+response+ otherwise
raise TeamdriveApi :: Error if + response + contains an exception return + response + otherwise
def return_or_fail(response)
      return response if response[:exception].nil?
      fail TeamdriveApi::Error.new response[:exception][:primarycode],
                                   response[:exception][:secondarycode],
                                   response[:exception][:message]
    end
def return_or_fail ( response ) return response if response [ :exception ] . nil? fail TeamdriveApi :: Error . new response [ :exception ] [ :primarycode ] , response [ :exception ] [ :secondarycode ] , response [ :exception ] [ :message ] end
raise TeamdriveApi::Error if +response+ contains an exception, return
+response+ otherwise
raise TeamdriveApi :: Error if + response + contains an exception return + response + otherwise
response