Class: DroneApi::Accounts::Create

Inherits:
Base
  • Object
show all
Defined in:
lib/drone_api/accounts/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.



11
12
13
14
# File 'lib/drone_api/accounts/create.rb', line 11

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

Instance Method Details

#process_response(response) ⇒ Object



16
17
18
# File 'lib/drone_api/accounts/create.rb', line 16

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