Class: TransparentData::Request
- Inherits:
-
Object
- Object
- TransparentData::Request
- Defined in:
- lib/transparent_data/request.rb
Class Method Summary collapse
Class Method Details
.call(client, method, query: {}, json: {}) ⇒ Object
6 7 8 9 10 |
# File 'lib/transparent_data/request.rb', line 6 def call(client, method, query: {}, json: {}) response = client.post(build_path(method, query), json.to_json) TransparentData::Response::Struct.new(response) end |