Module: ScreenshotShark::Helpers

Defined in:
lib/sss-ruby/helpers.rb

Instance Method Summary collapse

Instance Method Details

#sss_image_tag(url, options = {}) ⇒ Object

Create an image tag for the specified website



11
12
13
14
15
# File 'lib/sss-ruby/helpers.rb', line 11

def sss_image_tag url, options = {}
  options[:url] = url
  url = Builder.new(options).build_url()
  '<img src="#{url}">'
end

#sss_image_url(url, options = {}) ⇒ Object

Create an image URL for the specified website



5
6
7
8
# File 'lib/sss-ruby/helpers.rb', line 5

def sss_image_url url, options = {}
  options[:url] = url
  Builder.new(options).build_url()
end