Module: Ronin::Support::Network::IP::Mixin
- Included in:
- Mixin
- Defined in:
- lib/ronin/support/network/ip/mixin.rb
Overview
Provides helper methods for looking up the public and local IP address.
Instance Method Summary collapse
-
#local_address ⇒ String
Determines the local IP address.
-
#local_addresses ⇒ Array<String>
Determines the local IP addresses.
-
#local_ip ⇒ Network::IP
Determines the local IP.
-
#local_ips ⇒ Array<Network::IP>
Determines the local IPs.
-
#public_address ⇒ String?
Determines the current public IP address.
-
#public_ip ⇒ String?
Determines the current public IP.
Instance Method Details
#local_address ⇒ String
Determines the local IP address.
80 81 82 |
# File 'lib/ronin/support/network/ip/mixin.rb', line 80 def local_address Network::IP.local_address end |
#local_addresses ⇒ Array<String>
Determines the local IP addresses.
67 68 69 |
# File 'lib/ronin/support/network/ip/mixin.rb', line 67 def local_addresses Network::IP.local_addresses end |
#local_ip ⇒ Network::IP
Determines the local IP.
107 108 109 |
# File 'lib/ronin/support/network/ip/mixin.rb', line 107 def local_ip Network::IP.local_ip end |
#local_ips ⇒ Array<Network::IP>
Determines the local IPs.
93 94 95 |
# File 'lib/ronin/support/network/ip/mixin.rb', line 93 def local_ips Network::IP.local_ips end |
#public_address ⇒ String?
Determines the current public IP address.
40 41 42 |
# File 'lib/ronin/support/network/ip/mixin.rb', line 40 def public_address Network::IP.public_address end |