Class: Isup

Inherits:
Object
  • Object
show all
Defined in:
lib/isup.rb

Overview

A simple class to determine whether a website is down.

Instance Method Summary collapse

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