Class: Superset::BasePutRequest
- Defined in:
- lib/superset/base_put_request.rb
Direct Known Subclasses
Constant Summary
Constants inherited from Request
Instance Attribute Summary collapse
-
#object_id ⇒ Object
readonly
Returns the value of attribute object_id.
-
#params ⇒ Object
readonly
Returns the value of attribute params.
Attributes inherited from Request
Instance Method Summary collapse
-
#initialize(object_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
#display_headers, #headings, #list, #list_attributes, #result, #rows, #table, #title
Constructor Details
#initialize(object_id:, params:) ⇒ BasePutRequest
Returns a new instance of BasePutRequest.
5 6 7 8 |
# File 'lib/superset/base_put_request.rb', line 5 def initialize(object_id: ,params: ) @object_id = object_id @params = params end |
Instance Attribute Details
#object_id ⇒ Object (readonly)
Returns the value of attribute object_id.
3 4 5 |
# File 'lib/superset/base_put_request.rb', line 3 def object_id @object_id end |
#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 |
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 |