Class: Mindee::Input::Source::UrlInputSource

Inherits:
Object
  • Object
show all
Defined in:
lib/mindee/input/sources.rb

Overview

Load a remote document from a file url.

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#urlString (readonly)

Returns:

  • (String)


225
226
227
# File 'lib/mindee/input/sources.rb', line 225

def url
  @url
end