Class: NS1::Client

Inherits:
Object
  • Object
show all
Includes:
API
Defined in:
lib/ns1/client.rb

Constant Summary collapse

BASE_URL =
"https://api.nsone.net"

Constants included from API

API::HTTP_DELETE, API::HTTP_GET, API::HTTP_POST, API::HTTP_PUT

Instance Method Summary collapse

Methods included from API

included

Constructor Details

#initialize(api_key, base_url: BASE_URL, logger: nil) ⇒ Client

Returns a new instance of Client.



12
13
14
15
16
# File 'lib/ns1/client.rb', line 12

def initialize(api_key, base_url: BASE_URL, logger: nil)
  @api_key = api_key
  @base_url = base_url
  @logger = logger
end