Class: GreyNoise::Clients::Client

Inherits:
Object
  • Object
show all
Defined in:
lib/greynoise/clients/client.rb

Direct Known Subclasses

Experimental, Meta, Noise

Constant Summary collapse

HOST =
"api.greynoise.io"
VERSION =
"v2"
BASE_URL =
"https://#{HOST}/#{VERSION}".freeze

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key) ⇒ Client

Returns a new instance of Client.



16
17
18
# File 'lib/greynoise/clients/client.rb', line 16

def initialize(key)
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



14
15
16
# File 'lib/greynoise/clients/client.rb', line 14

def key
  @key
end