lib/mls/models/flyer.rb in mls-0.11.3 vs lib/mls/models/flyer.rb in mls-0.12.1
- old
+ new
@@ -1,13 +1,13 @@
require 'restclient'
class MLS::Flyer < MLS::Resource
- property :id, Fixnum
- property :digest, String
- property :avatar_digest, String
- property :file_name, String
- property :file_size, Fixnum
+ attribute :id, Fixnum
+ attribute :digest, String
+ attribute :avatar_digest, String
+ attribute :file_name, String
+ attribute :file_size, Fixnum
def url(protocol='http')
"#{protocol}://#{MLS.asset_host}/flyers/#{digest}/compressed/#{file_name}"
end