class Web
Public Instance Methods
url()
click to toggle source
this method will give us the current temperature through a URL
# File lib/web.rb, line 8 def url @temp = (URI.parse("https://labict.be/software-engineering/temperature/api/temperature/fake").read).to_f puts @temp return @temp end