Class: Superset::BasePutRequest
- Defined in:
- lib/superset/base_put_request.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#params ⇒ Object
readonly
Returns the value of attribute params.
-
#target_id ⇒ Object
readonly
Returns the value of attribute target_id.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(target_id:, params:) ⇒ BasePutRequest
constructor
A new instance of BasePutRequest.
- #perform ⇒ Object
- #response ⇒ Object
Methods inherited from Request
call, #query_params, #result, #superset_host
Methods included from Display
#ids, #list, #list_attributes, #result, #rows, #table, #title, #to_h
Constructor Details
#initialize(target_id:, params:) ⇒ BasePutRequest
Returns a new instance of BasePutRequest.
5 6 7 8 |
# File 'lib/superset/base_put_request.rb', line 5 def initialize(target_id: ,params: ) @target_id = target_id @params = params end |
Instance Attribute Details
#params ⇒ Object (readonly)
Returns the value of attribute params.
3 4 5 |
# File 'lib/superset/base_put_request.rb', line 3 def params @params end |
#target_id ⇒ Object (readonly)
Returns the value of attribute target_id.
3 4 5 |
# File 'lib/superset/base_put_request.rb', line 3 def target_id @target_id end |
Instance Method Details
#perform ⇒ Object
10 11 12 13 |
# File 'lib/superset/base_put_request.rb', line 10 def perform validate response end |
#response ⇒ Object
15 16 17 |
# File 'lib/superset/base_put_request.rb', line 15 def response @response ||= client.put(route, params) end |