Class: UrlScan::Clients::Base
- Inherits:
-
Object
- Object
- UrlScan::Clients::Base
- Defined in:
- lib/urlscan/clients/base.rb
Constant Summary collapse
- VERSION =
1
- HOST =
"urlscan.io"
Instance Attribute Summary collapse
-
#key ⇒ Object
readonly
Returns the value of attribute key.
Instance Method Summary collapse
-
#initialize(key = ENV["URLSCAN_API_KEY"]) ⇒ Base
constructor
A new instance of Base.
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
#key ⇒ Object (readonly)
Returns the value of attribute key.
12 13 14 |
# File 'lib/urlscan/clients/base.rb', line 12 def key @key end |