Module: Lce::Client::Request

Included in:
Lce::Client
Defined in:
lib/lce/client/request.rb

Instance Method Summary collapse

Instance Method Details

#get(resource = nil, id = nil, action = nil, format = nil, params = nil) ⇒ Object



4
5
6
7
# File 'lib/lce/client/request.rb', line 4

def get(resource = nil, id = nil, action = nil, format = nil, params = nil)
  p = path(resource, id, action, format)
  request(:get, p, params, format)
end

#post(resource = nil, params = nil) ⇒ Object



9
10
11
12
# File 'lib/lce/client/request.rb', line 9

def post(resource = nil, params = nil)
  p = path(resource)
  request(:post, p, params)
end