Method: EmbeddedFile::Loader#load_image_url

Defined in:
lib/asker/loader/embedded_file/loader.rb

#load_image_url(value, localdir) ⇒ Object



79
80
81
82
83
84
85
86
# File 'lib/asker/loader/embedded_file/loader.rb', line 79

def load_image_url(value, localdir)
  {
    text: "<img src=\"#{value}\" alt=\"image\" width=\"400\" height=\"300\">",
    file: :none,
    type: :url,
    url: value
  }
end