Class: BinaryEdge::Client::Base

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

Direct Known Subclasses

DataLeaks, Domains, Host, Image, RiskScore, Sensors, Torrent, User

Constant Summary collapse

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_key) ⇒ Base

Returns a new instance of Base.



16
17
18
# File 'lib/binaryedge/clients/base.rb', line 16

def initialize(api_key)
  @api_key = api_key
end

Instance Attribute Details

#api_keyObject (readonly)

Returns the value of attribute api_key.



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

def api_key
  @api_key
end