Class: DroneApi::Clients::Show
- Defined in:
- lib/drone_api/clients/show.rb
Instance Attribute Summary
Attributes inherited from Base
#account_id, #client_id, #client_secret, #response_data, #response_status
Instance Method Summary collapse
-
#initialize(id) ⇒ Show
constructor
A new instance of Show.
- #process_response(response) ⇒ Object
Methods inherited from Base
#env_url, #errors, #execute, #is_form_request?, #make_request, #parse_payload, #process_request, #query_params, #request, #requires_authentication?, #response, #set_auth_header, #valid?, #validate
Constructor Details
#initialize(id) ⇒ Show
Returns a new instance of Show.
3 4 5 6 |
# File 'lib/drone_api/clients/show.rb', line 3 def initialize id super() @id = id end |
Instance Method Details
#process_response(response) ⇒ Object
8 9 10 |
# File 'lib/drone_api/clients/show.rb', line 8 def process_response response @response_data = JSON.parse(response) end |