Module: Dnsimple::Compatibility::ClassMethods

Defined in:
lib/dnsimple/compatibility.rb

Instance Method Summary collapse

Instance Method Details

#clientObject



15
16
17
18
19
20
21
22
23
24
25
# File 'lib/dnsimple/compatibility.rb', line 15

def client
  options = {}
  options[:api_endpoint] = base_uri if base_uri
  options[:username] = username if username
  options[:password] = password if password
  options[:api_token] = api_token if api_token
  options[:domain_api_token] = domain_api_token if domain_api_token
  options[:exchange_token] = exchange_token if exchange_token

  new(options)
end

#delete(*args) ⇒ Object



39
40
41
# File 'lib/dnsimple/compatibility.rb', line 39

def delete(*args)
  client.delete(*args)
end

#get(*args) ⇒ Object



27
28
29
# File 'lib/dnsimple/compatibility.rb', line 27

def get(*args)
  client.get(*args)
end

#post(*args) ⇒ Object



31
32
33
# File 'lib/dnsimple/compatibility.rb', line 31

def post(*args)
  client.post(*args)
end

#put(*args) ⇒ Object



35
36
37
# File 'lib/dnsimple/compatibility.rb', line 35

def put(*args)
  client.put(*args)
end