File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -19,6 +19,9 @@ def self.provided()
19
19
Class . new ( self ) . tap do |provided |
20
20
provided . element_name = '/savedsearches'
21
21
provided . prefix = '/provided'
22
+ def is_provided_search?
23
+ true
24
+ end
22
25
SparkApi . logger . info ( "#{ self . name } .path: #{ provided . path } " )
23
26
end
24
27
end
@@ -56,6 +59,11 @@ def contacts
56
59
end
57
60
end
58
61
62
+ def listings ( args = { } )
63
+ arguments = { :_filter => self . Filter } . merge ( args )
64
+ @listings ||= Listing . collect ( connection . get ( "/listings" , arguments ) )
65
+ end
66
+
59
67
def newsfeeds
60
68
if @newsfeeds . nil?
61
69
response = SparkApi . client . get ( "/savedsearches/#{ @attributes [ "Id" ] } " , _expand : "NewsFeeds" ) . first [ "NewsFeeds" ]
@@ -65,8 +73,14 @@ def newsfeeds
65
73
@newsfeeds
66
74
end
67
75
76
+ def is_provided_search?
77
+ false
78
+ end
79
+
68
80
def can_have_newsfeed?
69
81
82
+ return false if is_provided_search?
83
+
70
84
standard_fields = %w( BathsTotal BedsTotal City CountyOrParish ListPrice Location MlsStatus PostalCode PropertyType RoomsTotal State )
71
85
72
86
number_of_filters = 0
You can’t perform that action at this time.
0 commit comments