Class: Xendit::ApiOperations
- Inherits:
-
Object
- Object
- Xendit::ApiOperations
- Defined in:
- lib/xendit/api_operations.rb
Class Method Summary collapse
Class Method Details
.get(url, params = nil) ⇒ Object
9 10 11 12 |
# File 'lib/xendit/api_operations.rb', line 9 def get(url, params = nil) conn = create_connection conn.get url, params end |
.post(url, **params) ⇒ Object
14 15 16 17 |
# File 'lib/xendit/api_operations.rb', line 14 def post(url, **params) conn = create_connection conn.post url, JSON.generate(params) end |