Class: Image
Instance Method Summary collapse
Methods included from TenantModel
Instance Method Details
#to_hash ⇒ Object
6 7 8 9 10 11 |
# File 'app/models/image.rb', line 6 def to_hash hash = attributes hash[:url] = data.url hash[:thumbnail_url] = data.url(:thumb) hash end |