Class: DroneApi::Inspections::Create

Inherits:
Base
  • Object
show all
Defined in:
lib/drone_api/inspections/create.rb

Defined Under Namespace

Classes: Params

Instance Attribute Summary

Attributes inherited from Base

#account_id, #client_id, #client_secret, #response_data, #response_status

Instance Method Summary collapse

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?

Constructor Details

#initialize(params = {}) ⇒ Create

Returns a new instance of Create.



12
13
14
15
# File 'lib/drone_api/inspections/create.rb', line 12

def initialize params={}
  super()
  @params = Params.new(params)
end

Instance Method Details

#process_response(response) ⇒ Object



17
18
19
# File 'lib/drone_api/inspections/create.rb', line 17

def process_response response
  @response_data = JSON.parse(response)
end