Class: PublicIp::Service::ParsedHTML

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

Direct Known Subclasses

IpChicken, PrivateInternetAccess, WhatIsMyIp

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



10
11
12
# File 'lib/public_ip/service/parsed_html.rb', line 10

def self.extract_ip(response)
  parse_ip_address(response.body)
end

.parse_ip_address(_html) ⇒ Object



6
7
8
# File 'lib/public_ip/service/parsed_html.rb', line 6

def self.parse_ip_address(_html)
  raise 'Not implemented'
end