Class: PhrasingPlus::DummyImage

Inherits:
Object
  • Object
show all
Defined in:
lib/phrasing_plus/dummy_image.rb

Constant Summary collapse

BG_COLOR =
'7d857c'
COLOR =
'dea9bb'

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ DummyImage

Returns a new instance of DummyImage.



7
8
9
# File 'lib/phrasing_plus/dummy_image.rb', line 7

def initialize(options = {})
  @options = options
end

Instance Method Details

#urlObject



11
12
13
# File 'lib/phrasing_plus/dummy_image.rb', line 11

def url
  "//placehold.it/#{size}/#{BG_COLOR}/#{COLOR}"
end