class PublicIp::Service::MatchedExpression

Attributes

match_regex[R]

Public Class Methods

extract_ip(response) click to toggle source
# File lib/public_ip/service/matched_expression.rb, line 8
def self.extract_ip(response)
  response.body.match(match_regex)[1].strip
end