Class: ZerigoDNS::Tools
- Defined in:
- lib/zerigodns/tools.rb
Class Method Summary collapse
-
.public_ip ⇒ String
Fetch the current public IP address (either ipv4 or ipv6).
-
.public_ipv4 ⇒ String
Fetch current public ipv4 address.
-
.public_ipv6 ⇒ String
Fetch current public ipv6 address.
Methods inherited from Base
Class Method Details
.public_ip ⇒ String
Fetch the current public IP address (either ipv4 or ipv6)
18 19 20 |
# File 'lib/zerigodns/tools.rb', line 18 def public_ip get :public_ip end |
.public_ipv4 ⇒ String
Fetch current public ipv4 address
6 7 8 |
# File 'lib/zerigodns/tools.rb', line 6 def public_ipv4 get :public_ipv4 end |
.public_ipv6 ⇒ String
Fetch current public ipv6 address
12 13 14 |
# File 'lib/zerigodns/tools.rb', line 12 def public_ipv6 get :public_ipv6 end |