Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing the model of a "Domain" response

Hierarchy

  • Domain

Index

Constructors

Properties

Constructors

constructor

  • new Domain(response: DomainResponse): Domain
  • Instantiates an "Domain" using fields from the response

    Parameters

    • response: DomainResponse

      The GeoIP2 response

    Returns Domain

Properties

Optional Readonly domain

domain?: string

The second level domain associated with the IP address. This will be something like "example.com" or "example.co.uk", not "foo.example.com".

Optional ipAddress

ipAddress?: string

The IP address that the data in the model is for. If you performed a "me" lookup against the web service, this will be the externally routable IP address for the system the code is running on. If the system is behind a NAT, this may differ from the IP address locally assigned to it.

Optional network

network?: string

The network associated with the record. In particular, this is the largest network where all of the fields besides ipAddress have the same value.

Generated using TypeDoc