lib/mls/models/tour.rb in mls-0.5.1 vs lib/mls/models/tour.rb in mls-0.5.2
- old
+ new
@@ -11,14 +11,16 @@
property :updated_at, DateTime, :serialize => :false
attr_accessor :client, :listing
def claim(agent)
+ self.agent_id = agent.id
MLS.post("/tours/#{token}/claim", {:agent_id => agent.id})
end
- def decline(comments=nil)
- MLS.post("/tours/#{token}/decline", {:agent_comments => reasons})
+ def decline(notes=nil)
+ self.agent_comments = notes
+ MLS.post("/tours/#{token}/decline", {:agent_comments => notes})
end
def view
MLS.post("/tours/#{token}/view")
end