Skip to content
This repository has been archived by the owner on Jun 23, 2020. It is now read-only.

Commit

Permalink
added #request method for client requests in Resource
Browse files Browse the repository at this point in the history
  • Loading branch information
oheyandy committed May 21, 2014
1 parent 791e54b commit 881b81e
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/desk_api/resource.rb
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,10 @@ def new_resource(definition, loaded=false, client=@_client)
self.class.new(client, definition, loaded)
end

def request(method, url, params={}, client=@_client)
client.send(method, url, params)
end

def method_missing(method, *args, &block)
self.load

Expand Down
Loading

0 comments on commit 881b81e

Please sign in to comment.