Class: Mindee::Input::Source::UrlInputSource
- Inherits:
-
Object
- Object
- Mindee::Input::Source::UrlInputSource
- Defined in:
- lib/mindee/input/sources.rb
Overview
Load a remote document from a file url.
Instance Attribute Summary collapse
- #url ⇒ String readonly
Instance Method Summary collapse
-
#initialize(url) ⇒ UrlInputSource
constructor
A new instance of UrlInputSource.
Constructor Details
#initialize(url) ⇒ UrlInputSource
Returns a new instance of UrlInputSource.
227 228 229 230 231 |
# File 'lib/mindee/input/sources.rb', line 227 def initialize(url) raise 'URL must be HTTPS' unless url.start_with? 'https://' @url = url end |
Instance Attribute Details
#url ⇒ String (readonly)
225 226 227 |
# File 'lib/mindee/input/sources.rb', line 225 def url @url end |