Class: PublicIp::Service::Plain

Inherits:
Simple
  • Object
show all
Extended by:
Registrable
Defined in:
lib/public_ip/service/plain.rb

Instance Attribute Summary

Attributes inherited from Simple

#headers, #uri

Class Method Summary collapse

Methods included from Registrable

inherited

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