Class: PublicIp::Service::Plain
- Extended by:
- Registrable
- Defined in:
- lib/public_ip/service/plain.rb
Direct Known Subclasses
Akamai, AmazonAWS, CurlMyIp, ICanHazIp, IdentMe, IfconfigMe, IpEcho, IpInfo, MxToolbox, SmartIp, WhatIsMyIpAddress
Instance Attribute Summary
Attributes inherited from Simple
Class Method Summary collapse
Methods included from Registrable
Methods inherited from Simple
headers, ip, perform_request, symbol, uri
Class Method Details
.extract_ip(response) ⇒ Object
6 7 8 |
# File 'lib/public_ip/service/plain.rb', line 6 def self.extract_ip(response) response.body.strip.delete('"') end |