Skip to content

Commit

Permalink
feat(request): implements getDefaultOptions()
Browse files Browse the repository at this point in the history
  • Loading branch information
ramonornela committed Feb 21, 2017
1 parent 902d765 commit 6a54273
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/providers/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,13 @@ export class Request {
return new RequestAngular(options);
}

setDefaultOptions(options: any) {
setDefaultOptions(options: any): this {
this.defaultOptions = options;
return this;
}

getDefaultOptions() {
return this.defaultOptions;
}

protected serializeParams(id: string, options: any, params: Object) {
Expand Down

0 comments on commit 6a54273

Please sign in to comment.