Method: RTX::API::Client#post

Defined in:
lib/rtx/api/client.rb

#post(resource_name, attrs = {}) ⇒ Object



59
60
61
62
63
# File 'lib/rtx/api/client.rb', line 59

def post(resource_name, attrs = {})
  resource_exists?(resource_name)
  request = self.class.post("#{rtx_api_url}/#{resource_name}", options(:post, attrs))
  handle_request(request)
end