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
##
67 68 69 70 71 72 73 |
# File 'lib/immosquare-constants/ip.rb', line 67 def get_ips(request = nil) IpResult.new( get_local_ip, get_public_ip_from_aws, get_client_ip(request) ) end |
.get_my_ip_from_aws ⇒ Object
##
Method to get the public IP address used to access the internet
##
60 61 62 |
# File 'lib/immosquare-constants/ip.rb', line 60 def get_my_ip_from_aws get_public_ip_from_aws end |