Class: Tredo::RestProvider

Inherits:
Object
  • Object
show all
Defined in:
lib/tredo/restprovider.rb

Instance Method Summary collapse

Constructor Details

#initializeRestProvider

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