Module: Dnsimple::Compatibility::ClassMethods
- Defined in:
- lib/dnsimple/compatibility.rb
Instance Method Summary collapse
- #client ⇒ Object
- #delete(*args) ⇒ Object
- #get(*args) ⇒ Object
- #post(*args) ⇒ Object
- #put(*args) ⇒ Object
Instance Method Details
#client ⇒ Object
15 16 17 18 19 20 21 22 23 24 25 |
# File 'lib/dnsimple/compatibility.rb', line 15 def client = {} [:api_endpoint] = base_uri if base_uri [:username] = username if username [:password] = password if password [:api_token] = api_token if api_token [:domain_api_token] = domain_api_token if domain_api_token [:exchange_token] = exchange_token if exchange_token new() 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 |