Class: UrlScan::API

Inherits:
Object
  • Object
show all
Extended by:
Forwardable
Defined in:
lib/urlscan/api.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

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

Returns a new instance of API.



11
12
13
14
# File 'lib/urlscan/api.rb', line 11

def initialize(key = ENV["URLSCAN_API_KEY"])
  @community = Clients::Community.new(key)
  @pro = Clients::Pro.new(key)
end

Instance Attribute Details

#proObject (readonly)

Returns the value of attribute pro.



9
10
11
# File 'lib/urlscan/api.rb', line 9

def pro
  @pro
end