Class: Image

Inherits:
Asset
  • Object
show all
Defined in:
app/models/image.rb

Instance Method Summary collapse

Methods included from TenantModel

included

Instance Method Details

#to_hashObject



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