Sha256: 6862cbcd3bc514c5495d42e286f98da65b97eda0de63ee88e7b64383fc9d271d

Contents?: true

Size: 209 Bytes

Versions: 17

Compression:

Stored size: 209 Bytes

Contents

class MLS::Photo < MLS::Resource

  def initialize(digest)
    @digest = digest
  end

  def url(style='large', protocol='http')
    "#{protocol}://#{MLS.asset_host}/photos/#{style}/#{@digest}.jpg"
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
mls-0.2.2 lib/mls/models/photo.rb
mls-0.2.1 lib/mls/models/photo.rb
mls-0.2.0 lib/mls/models/photo.rb
mls-0.1.2 lib/mls/photo.rb
mls-0.1.1 lib/mls/photo.rb
mls-0.1.0 lib/mls/photo.rb
mls-0.0.23 lib/mls/photo.rb
mls-0.0.22 lib/mls/photo.rb
mls-0.0.21 lib/mls/photo.rb
mls-0.0.20 lib/mls/photo.rb
mls-0.0.19 lib/mls/photo.rb
mls-0.0.18 lib/mls/photo.rb
mls-0.0.17 lib/mls/photo.rb
mls-0.0.16 lib/mls/photo.rb
mls-0.0.15 lib/mls/photo.rb
mls-0.0.14 lib/mls/photo.rb
mls-0.0.13 lib/mls/photo.rb