Class: Tredo::RestProvider
- Inherits:
-
Object
- Object
- Tredo::RestProvider
- Defined in:
- lib/tredo/restprovider.rb
Instance Method Summary collapse
- #get(url, *params) ⇒ Object
-
#initialize ⇒ RestProvider
constructor
A new instance of RestProvider.
- #post(url, *params) ⇒ Object
Constructor Details
#initialize ⇒ RestProvider
Returns a new instance of RestProvider.
7 8 9 |
# File 'lib/tredo/restprovider.rb', line 7 def initialize @restclient = RestClient end |
Instance Method Details
#get(url, *params) ⇒ Object
11 12 13 |
# File 'lib/tredo/restprovider.rb', line 11 def get(url, *params) @restclient.get url, *params end |
#post(url, *params) ⇒ Object
15 16 17 |
# File 'lib/tredo/restprovider.rb', line 15 def post(url, *params) @restclient.post url, *params end |