mls 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mls/models/tour.rb +4 -2
- data/mls.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73e34e22af2b020d24f956face96877cac426814
|
4
|
+
data.tar.gz: 6a2c9ed4eaf88226c90fea0c5953bd59135c36fc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6fe9b9b23cd9ca53379a20a57e1776c7158599e62781a123ce2d03cc100a196fe8d0ff4730f95db5bae5e6ec79e6d431920e069d19a1b4580d5b91334f4e5e68
|
7
|
+
data.tar.gz: 1e04f8028fae488bbaa7778e0127100986f120b41a9d57986ebc0b5d790111954ba68ea84cfcf8acba95410e31f91ad780fe9feb31d71eeb745d2403a9945873
|
data/lib/mls/models/tour.rb
CHANGED
@@ -13,11 +13,13 @@ class MLS::Tour < MLS::Resource
|
|
13
13
|
attr_accessor :client, :listing
|
14
14
|
|
15
15
|
def claim(agent)
|
16
|
+
self.agent_id = agent.id
|
16
17
|
MLS.post("/tours/#{token}/claim", {:agent_id => agent.id})
|
17
18
|
end
|
18
19
|
|
19
|
-
def decline(
|
20
|
-
|
20
|
+
def decline(notes=nil)
|
21
|
+
self.agent_comments = notes
|
22
|
+
MLS.post("/tours/#{token}/decline", {:agent_comments => notes})
|
21
23
|
end
|
22
24
|
|
23
25
|
def view
|
data/mls.gemspec
CHANGED