Class: Hey::Request::Post

Inherits:
Base
  • Object
show all
Defined in:
lib/hey/request/post.rb

Constant Summary

Constants inherited from Base

Base::ERROR_CODE, Base::URL

Instance Attribute Summary

Attributes inherited from Base

#response

Instance Method Summary collapse

Methods inherited from Base

#error_message, #get_response_body, #has_error?, #initialize, #json, #raise_for_invalid_code!, #uri

Constructor Details

This class inherits a constructor from Hey::Request::Base

Instance Method Details

#send_request(route, params) ⇒ Object



7
8
9
# File 'lib/hey/request/post.rb', line 7

def send_request route, params
  Net::HTTP.post_form uri(route), params
end