Module: ImmosquareConstants::Ip
- Defined in:
- lib/immosquare-constants/ip.rb
Defined Under Namespace
Classes: IpResult
Class Method Summary collapse
-
.get_ips(request = nil) ⇒ Object
## Method to get available IP addresses ============================================================##.
-
.get_my_ip_from_aws ⇒ Object
## Method to get the public IP address used to access the internet ============================================================##.
Class Method Details
.get_ips(request = nil) ⇒ Object
##
Method to get available IP addresses
##
64 65 66 67 68 69 |
# File 'lib/immosquare-constants/ip.rb', line 64 def get_ips(request = nil) IpResult.new( get_local_ip, get_client_ip(request) ) end |
.get_my_ip_from_aws ⇒ Object
##
Method to get the public IP address used to access the internet
##
57 58 59 |
# File 'lib/immosquare-constants/ip.rb', line 57 def get_my_ip_from_aws get_public_ip_from_aws end |