Class: Isup
- Inherits:
-
Object
- Object
- Isup
- Defined in:
- lib/isup.rb
Overview
A simple class to determine whether a website is down.
Instance Method Summary collapse
-
#initialize(url) ⇒ Isup
constructor
A new instance of Isup.
Constructor Details
#initialize(url) ⇒ Isup
Returns a new instance of Isup.
6 7 8 9 10 11 12 13 |
# File 'lib/isup.rb', line 6 def initialize(url) @url = url if valid? up? else puts "Please input a valid URL" end end |