Class: NSOne::Client

Inherits:
Object
  • Object
show all
Includes:
API
Defined in:
lib/nsone/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.



14
15
16
17
18
# File 'lib/nsone/client.rb', line 14

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