Class: PublicIp::Service::Dyndns
Instance Attribute Summary
#match_regex
Attributes inherited from Simple
#headers, #uri
Class Method Summary
collapse
extract_ip
#inherited
Methods inherited from Simple
headers, ip, perform_request, symbol
Class Method Details
.match_regex ⇒ Object
8
9
10
|
# File 'lib/public_ip/service/dyndns.rb', line 8
def self.match_regex
/Current IP Address: ((?:[0-9]{1,3}\.){3}[0-9]{1,3})/
end
|
.uri ⇒ Object
4
5
6
|
# File 'lib/public_ip/service/dyndns.rb', line 4
def self.uri
URI('http://checkip.dyndns.org')
end
|