Class: UrlScan::Clients::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/urlscan/clients/base.rb

Direct Known Subclasses

Community, Pro

Constant Summary collapse

VERSION =
1
HOST =
"urlscan.io"

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(key = ENV["URLSCAN_API_KEY"]) ⇒ Base

Returns a new instance of Base.



14
15
16
# File 'lib/urlscan/clients/base.rb', line 14

def initialize(key = ENV["URLSCAN_API_KEY"])
  @key = key
end

Instance Attribute Details

#keyObject (readonly)

Returns the value of attribute key.



12
13
14
# File 'lib/urlscan/clients/base.rb', line 12

def key
  @key
end