Class: Seer::Org
- Inherits:
-
Object
- Object
- Seer::Org
- Defined in:
- lib/seer/org.rb
Overview
ORG API controller
Instance Method Summary collapse
-
#asn(asn) ⇒ Hash
Get organization by AS number.
-
#initialize(token: '', version: '2.0', host: '') ⇒ Org
constructor
Initialize a Org object.
-
#ip(ip) ⇒ Hash
Get organization by ip.
Constructor Details
#initialize(token: '', version: '2.0', host: '') ⇒ Org
Initialize a Org object
8 9 10 11 12 13 14 15 |
# File 'lib/seer/org.rb', line 8 def initialize(token: '', version: '2.0', host: '') @host = host + '/org' @header = { content_type: 'application/json', x_seer_token: token, x_seer_version: version } end |