def all(options = {})
      begin
        response = Api.post("/models/#{id}/records", body: options).parsed_response
        ((view_id = options.delete(:view_id) || options.delete('view_id')).nil? ? response : response['records']).map do |data|
          load data
        end
      rescue MultiJson::DecodeError
      end
    end
def all(options = {})
      begin
        response = Api.post("/models/#{id}/records", body: options).parsed_response
        ((view_id = options.delete(:view_id) || options.delete('view_id')).nil? ? response : response['records']).map do |data|
          load data
        end
      rescue MultiJson::DecodeError
      end
    end
TODO: Refactor this method in order to handle formatted view JSON correctly