lib/mls/models/pdf.rb in mls-0.11.3 vs lib/mls/models/pdf.rb in mls-0.12.1

- old
+ new

@@ -1,10 +1,10 @@ class MLS::PDF < MLS::Resource - property :id, Fixnum - property :digest, String - property :file_url, String - property :type, String + attribute :id, Fixnum + attribute :digest, String + attribute :file_url, String + attribute :type, String def url(style='700x467#', protocol='http') "#{protocol}://#{MLS.image_host}/#{avatar_digest}.jpg?s=#{URI.escape(size)}" end end