Module: Kanmon::MyIP

Defined in:
lib/kanmon/myip.rb

Class Method Summary collapse

Class Method Details

.getObject



6
7
8
9
# File 'lib/kanmon/myip.rb', line 6

def self.get
  res = Net::HTTP.get URI.parse('https://checkip.amazonaws.com/')
  res.chomp
end