module LoremIpsumAmet::Image

Public Instance Methods

placeholder_image(width, height = width) click to toggle source
# File lib/lorem_ipsum_amet/image.rb, line 4
def placeholder_image(width, height = width)
  dimensions = [width, height].join('x')

  [base_url, dimensions].join('/')
end

Private Instance Methods

base_url() click to toggle source
# File lib/lorem_ipsum_amet/image.rb, line 12
def base_url
  'http://placehold.it'
end