Module: Spreedly::SslRequester
- Included in:
- Environment
- Defined in:
- lib/spreedly/ssl_requester.rb
Instance Method Summary collapse
- #ssl_get(endpoint, headers) ⇒ Object
- #ssl_post(endpoint, body, headers, talking_to_gateway = false) ⇒ Object
- #ssl_put(endpoint, body, headers) ⇒ Object
- #ssl_raw_get(endpoint, headers) ⇒ Object
Instance Method Details
#ssl_get(endpoint, headers) ⇒ Object
3 4 5 |
# File 'lib/spreedly/ssl_requester.rb', line 3 def ssl_get(endpoint, headers) ssl_request(:get, endpoint, nil, headers) end |
#ssl_post(endpoint, body, headers, talking_to_gateway = false) ⇒ Object
7 8 9 |
# File 'lib/spreedly/ssl_requester.rb', line 7 def ssl_post(endpoint, body, headers, talking_to_gateway = false) ssl_request(:post, endpoint, body, headers, talking_to_gateway: talking_to_gateway) end |
#ssl_put(endpoint, body, headers) ⇒ Object
15 16 17 |
# File 'lib/spreedly/ssl_requester.rb', line 15 def ssl_put(endpoint, body, headers) ssl_request(:put, endpoint, body, headers) end |
#ssl_raw_get(endpoint, headers) ⇒ Object
11 12 13 |
# File 'lib/spreedly/ssl_requester.rb', line 11 def ssl_raw_get(endpoint, headers) ssl_request(:get, endpoint, nil, headers, return_raw: true) end |