Class: PublicIp::Service::Dyndns

Inherits:
MatchedExpression show all
Defined in:
lib/public_ip/service/dyndns.rb

Instance Attribute Summary

Attributes inherited from MatchedExpression

#match_regex

Attributes inherited from Simple

#headers, #uri

Class Method Summary collapse

Methods inherited from MatchedExpression

extract_ip

Methods included from Registrable

#inherited

Methods inherited from Simple

headers, ip, perform_request, symbol

Class Method Details

.match_regexObject



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

.uriObject



4
5
6
# File 'lib/public_ip/service/dyndns.rb', line 4

def self.uri
  URI('http://checkip.dyndns.org')
end