Class: Embedit::Validate
- Inherits:
-
Object
- Object
- Embedit::Validate
- Defined in:
- lib/embedit/validate.rb
Instance Method Summary collapse
-
#initialize(url) ⇒ Validate
constructor
A new instance of Validate.
- #valid? ⇒ Boolean
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 |