Class: Bixby::JsonRequest
- Inherits:
-
Object
- Object
- Bixby::JsonRequest
- Includes:
- HttpClient, Jsonify
- Defined in:
- lib/bixby_common/api/json_request.rb
Overview
Wraps a JSON Request
Instance Attribute Summary collapse
-
#operation ⇒ String
Name of operation.
-
#params ⇒ Array
Array of paramters; must be valid JSON types.
Instance Method Summary collapse
-
#initialize(operation, params) ⇒ JsonRequest
constructor
Create a new JsonRequest.
Methods included from HttpClient
#create_post_data, #http_get, #http_get_json, #http_post, #http_post_download, #http_post_json
Methods included from Jsonify
Methods included from Hashify
Constructor Details
#initialize(operation, params) ⇒ JsonRequest
Create a new JsonRequest
19 20 21 22 |
# File 'lib/bixby_common/api/json_request.rb', line 19 def initialize(operation, params) @operation = operation @params = params end |
Instance Attribute Details
#operation ⇒ String
Name of operation
8 9 10 |
# File 'lib/bixby_common/api/json_request.rb', line 8 def operation @operation end |
#params ⇒ Array
Array of paramters; must be valid JSON types
8 9 10 |
# File 'lib/bixby_common/api/json_request.rb', line 8 def params @params end |