Class: Tsclient::Client
- Inherits:
-
Object
- Object
- Tsclient::Client
- Defined in:
- lib/tsclient/client.rb
Instance Method Summary collapse
-
#initialize(uri:) ⇒ Client
constructor
A new instance of Client.
- #tailscale_ips ⇒ Object
- #whois(addr) ⇒ Object
Constructor Details
#initialize(uri:) ⇒ Client
Returns a new instance of Client.
11 12 13 14 |
# File 'lib/tsclient/client.rb', line 11 def initialize(uri:) @api_uri = uri.freeze freeze end |
Instance Method Details
#tailscale_ips ⇒ Object
16 17 18 |
# File 'lib/tsclient/client.rb', line 16 def tailscale_ips api_get(:status).result.dig("TailscaleIPs") end |