Class: Datahen::Client::DeployKey

Inherits:
Base
  • Object
show all
Defined in:
lib/datahen/client/deploy_key.rb

Constant Summary

Constants inherited from Base

Base::CHECK_EMPTY_BODY, Base::CHECK_NIL, Base::DEFAULT_RETRY_LIMIT

Instance Method Summary collapse

Methods inherited from Base

#auth_token, #auth_token=, #default_retry_limit, #env_api_url, env_auth_token, env_ignore_ssl, #ignore_ssl, #initialize, #left_merge, random_delay, #retry

Constructor Details

This class inherits a constructor from Datahen::Client::Base

Instance Method Details

#create(opts = {}) ⇒ Object



10
11
12
13
# File 'lib/datahen/client/deploy_key.rb', line 10

def create(opts={})
  params = @options.merge(opts)
  self.class.post("/deploy_key", params)
end

#delete(opts = {}) ⇒ Object



15
16
17
18
# File 'lib/datahen/client/deploy_key.rb', line 15

def delete(opts={})
  params = @options.merge(opts)
  self.class.delete("/deploy_key", params)
end

#find(opts = {}) ⇒ Object



5
6
7
8
# File 'lib/datahen/client/deploy_key.rb', line 5

def find(opts={})
  params = @options.merge(opts)
  self.class.get("/deploy_key", params)
end