Permalink
Browse files

Style changes.

  • Loading branch information...
1 parent 79c6d9f commit f925618550523eb58862ce636d30991afa3a92ea Andrew Kirilenko committed Jul 7, 2012
Showing with 20 additions and 24 deletions.
  1. +20 −24 src/client.coffee
View
@@ -68,42 +68,38 @@ class Client
)
get: (method, params, handler) ->
- request_info = {
- 'method': 'GET',
- 'uri': @url() + method,
- 'headers': @headers,
- 'qs': params
- }
+ request_info =
+ method: 'GET'
+ uri: @url() + method
+ headers: @headers
+ qs: params
@request(request_info, handler)
post: (method, params, handler) ->
- request_info = {
- 'method': 'POST',
- 'uri': @url() + method,
- 'headers': @headers,
- 'json': params
- }
+ request_info =
+ method: 'POST'
+ uri: @url() + method
+ headers: @headers
+ json: params
@request(request_info, handler)
put: (method, params, handler) ->
- request_info = {
- 'method': 'PUT',
- 'uri': @url() + method,
- 'headers': @headers,
- 'json': params
- }
+ request_info =
+ method: 'PUT'
+ uri: @url() + method
+ headers: @headers
+ json: params
@request(request_info, handler)
delete: (method, params, handler) ->
- request_info = {
- 'method': 'DELETE',
- 'uri': @url() + method,
- 'headers': @headers,
- 'qs': params
- }
+ request_info =
+ method: 'DELETE'
+ uri: @url() + method
+ headers: @headers
+ qs: params
@request(request_info, handler)

0 comments on commit f925618

Please sign in to comment.