Class: Embedit::Validate

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

Instance Method Summary collapse

Constructor Details

#initialize(url) ⇒ Validate



4
5
6
7
# File 'lib/embedit/validate.rb', line 4

def initialize(url)
  @url = url
  @valid = accessible? # && add more tests here if needed
end

Instance Method Details

#valid?Boolean



9
10
11
# File 'lib/embedit/validate.rb', line 9

def valid?
  @valid
end