Class: PassiveTotal::Client::Base

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

Direct Known Subclasses

Account, Action, Artifact, DNS, Enrichment, Host, Monitor, Project, SSL, Tag, Tracker, WHOIS

Constant Summary collapse

HOST =
"api.passivetotal.org"
VERSION =
"v2"
BASE_URL =
"https://#{HOST}/#{VERSION}"

Instance Method Summary collapse

Constructor Details

#initialize(username:, api_key:) ⇒ Base

Returns a new instance of Base.



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

def initialize(username:, api_key:)
  @username = username
  @api_key = api_key
end