Skip to content

Instantly share code, notes, and snippets.

@bittersweetryan
Created October 4, 2012 18:34
Show Gist options
  • Save bittersweetryan/3835502 to your computer and use it in GitHub Desktop.
Save bittersweetryan/3835502 to your computer and use it in GitHub Desktop.
real world partial
<cfscript>
private Function function makeFilingGetter(Any filing,
String password,
String username,
String filingEndpoint,
String attachmentEndpoint){
return function(String entity, String filter, String fields){
return filing.getFilings(username,
password,
arguments.entity,
filingEndpoint,
attachmentEndpoint,
"*",
arguments.filter,
"#variables.attachmentPath#",
javaCast("String[]",listToArray(trim(arguments.fields))));
};
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment