Method: ActionText::Attachables::RemoteImage#initialize
- Defined in:
- actiontext/lib/action_text/attachables/remote_image.rb
#initialize(attributes = {}) ⇒ RemoteImage
Returns a new instance of RemoteImage.
32 33 34 35 36 37 |
# File 'actiontext/lib/action_text/attachables/remote_image.rb', line 32 def initialize(attributes = {}) @url = attributes[:url] @content_type = attributes[:content_type] @width = attributes[:width] @height = attributes[:height] end |