bizratr 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,299 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: BizRatr::YelpConnector</title>
9
+
10
+ <link rel="stylesheet" href="../rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="../js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="../js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="../js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="class">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="../index.html">Home</a>
29
+ <a href="../index.html#classes">Classes</a>
30
+ <a href="../index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="../lib/bizratr/connector_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/bizratr/connector.rb">lib/bizratr/connector.rb</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+ </div>
47
+
48
+
49
+ </div>
50
+
51
+ <div id="class-metadata">
52
+
53
+ <!-- Parent Class -->
54
+
55
+ <div id="parent-class-section" class="section">
56
+ <h3 class="section-header">Parent</h3>
57
+
58
+ <p class="link"><a href="Connector.html">BizRatr::Connector</a></p>
59
+
60
+ </div>
61
+
62
+
63
+ <!-- Namespace Contents -->
64
+
65
+
66
+ <!-- Method Quickref -->
67
+
68
+ <div id="method-list-section" class="section">
69
+ <h3 class="section-header">Methods</h3>
70
+ <ul class="link-list">
71
+
72
+ <li><a href="#method-c-new">::new</a></li>
73
+
74
+ <li><a href="#method-i-make_business">#make_business</a></li>
75
+
76
+ <li><a href="#method-i-search_location">#search_location</a></li>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+
82
+ <!-- Included Modules -->
83
+
84
+ </div>
85
+
86
+ <div id="project-metadata">
87
+
88
+
89
+ <div id="fileindex-section" class="section project-section">
90
+ <h3 class="section-header">Files</h3>
91
+ <ul>
92
+
93
+ <li class="file"><a href="../README_rdoc.html">README.rdoc</a></li>
94
+
95
+ </ul>
96
+ </div>
97
+
98
+
99
+ <div id="classindex-section" class="section project-section">
100
+ <h3 class="section-header">Class Index
101
+ <span class="search-toggle"><img src="../images/find.png"
102
+ height="16" width="16" alt="[+]"
103
+ title="show/hide quicksearch" /></span></h3>
104
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
105
+ <fieldset>
106
+ <legend>Quicksearch</legend>
107
+ <input type="text" name="quicksearch" value=""
108
+ class="quicksearch-field" />
109
+ </fieldset>
110
+ </form>
111
+
112
+ <ul class="link-list">
113
+
114
+ <li><a href="../BizRatr.html">BizRatr</a></li>
115
+
116
+ <li><a href="../BizRatr/Business.html">BizRatr::Business</a></li>
117
+
118
+ <li><a href="../BizRatr/Connector.html">BizRatr::Connector</a></li>
119
+
120
+ <li><a href="../BizRatr/Finder.html">BizRatr::Finder</a></li>
121
+
122
+ <li><a href="../BizRatr/FourSquareConnector.html">BizRatr::FourSquareConnector</a></li>
123
+
124
+ <li><a href="../BizRatr/GooglePlacesConnector.html">BizRatr::GooglePlacesConnector</a></li>
125
+
126
+ <li><a href="../BizRatr/YelpConnector.html">BizRatr::YelpConnector</a></li>
127
+
128
+ </ul>
129
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
130
+ </div>
131
+
132
+
133
+ </div>
134
+ </div>
135
+
136
+ <div id="documentation">
137
+ <h1 class="class">BizRatr::YelpConnector</h1>
138
+
139
+ <div id="description">
140
+
141
+ </div>
142
+
143
+ <!-- Constants -->
144
+
145
+
146
+ <!-- Attributes -->
147
+
148
+
149
+ <!-- Methods -->
150
+
151
+ <div id="public-class-method-details" class="method-section section">
152
+ <h3 class="section-header">Public Class Methods</h3>
153
+
154
+
155
+ <div id="new-method" class="method-detail ">
156
+ <a name="method-c-new"></a>
157
+
158
+ <div class="method-heading">
159
+
160
+ <span class="method-name">new</span><span
161
+ class="method-args">(config)</span>
162
+ <span class="method-click-advice">click to toggle source</span>
163
+
164
+ </div>
165
+
166
+ <div class="method-description">
167
+
168
+
169
+
170
+
171
+
172
+ <div class="method-source-code"
173
+ id="new-source">
174
+ <pre>
175
+ <span class="ruby-comment cmt"># File lib/bizratr/connector.rb, line 73</span>
176
+ 73: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>(<span class="ruby-identifier">config</span>)
177
+ 74: <span class="ruby-ivar">@config</span> = <span class="ruby-identifier">config</span>
178
+ 75: <span class="ruby-ivar">@client</span> = <span class="ruby-constant">Yelp</span><span class="ruby-operator">::</span><span class="ruby-constant">Client</span>.<span class="ruby-identifier">new</span>
179
+ 76: <span class="ruby-keyword kw">end</span></pre>
180
+ </div>
181
+
182
+ </div>
183
+
184
+
185
+
186
+
187
+ </div>
188
+
189
+
190
+ </div>
191
+
192
+ <div id="public-instance-method-details" class="method-section section">
193
+ <h3 class="section-header">Public Instance Methods</h3>
194
+
195
+
196
+ <div id="make-business-method" class="method-detail ">
197
+ <a name="method-i-make_business"></a>
198
+
199
+ <div class="method-heading">
200
+
201
+ <span class="method-name">make_business</span><span
202
+ class="method-args">(item)</span>
203
+ <span class="method-click-advice">click to toggle source</span>
204
+
205
+ </div>
206
+
207
+ <div class="method-description">
208
+
209
+
210
+
211
+
212
+
213
+ <div class="method-source-code"
214
+ id="make-business-source">
215
+ <pre>
216
+ <span class="ruby-comment cmt"># File lib/bizratr/connector.rb, line 87</span>
217
+ 87: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">make_business</span>(<span class="ruby-identifier">item</span>)
218
+ 88: <span class="ruby-identifier">b</span> = <span class="ruby-constant">Business</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'coordinate'</span>][<span class="ruby-value str">'latitude'</span>], <span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'coordinate'</span>][<span class="ruby-value str">'longitude'</span>], <span class="ruby-identifier">item</span>[<span class="ruby-value str">'name'</span>])
219
+ 89: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">add_id</span>(<span class="ruby-value">:yelp</span>, <span class="ruby-identifier">item</span>[<span class="ruby-value str">'id'</span>])
220
+ 90: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">state</span> = <span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'state_code'</span>]
221
+ 91: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">zip</span> = <span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'postal_code'</span>]
222
+ 92: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">country</span> = <span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'country_code'</span>]
223
+ 93: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">city</span> = <span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'city'</span>]
224
+ 94: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">address</span> = <span class="ruby-identifier">item</span>[<span class="ruby-value str">'location'</span>][<span class="ruby-value str">'address'</span>].<span class="ruby-identifier">first</span>
225
+ 95: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">phone</span> = <span class="ruby-identifier">item</span>[<span class="ruby-value str">'phone'</span>]
226
+ 96: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">add_rating</span>(<span class="ruby-value">:yelp</span>, <span class="ruby-identifier">item</span>[<span class="ruby-value str">'rating'</span>])
227
+ 97: <span class="ruby-identifier">b</span>.<span class="ruby-identifier">add_review_counts</span>(<span class="ruby-value">:yelp</span>, <span class="ruby-identifier">item</span>[<span class="ruby-value str">'review_count'</span>])
228
+ 98: <span class="ruby-identifier">b</span>
229
+ 99: <span class="ruby-keyword kw">end</span></pre>
230
+ </div>
231
+
232
+ </div>
233
+
234
+
235
+
236
+
237
+ </div>
238
+
239
+
240
+ <div id="search-location-method" class="method-detail ">
241
+ <a name="method-i-search_location"></a>
242
+
243
+ <div class="method-heading">
244
+
245
+ <span class="method-name">search_location</span><span
246
+ class="method-args">(ll, query)</span>
247
+ <span class="method-click-advice">click to toggle source</span>
248
+
249
+ </div>
250
+
251
+ <div class="method-description">
252
+
253
+
254
+
255
+
256
+
257
+ <div class="method-source-code"
258
+ id="search-location-source">
259
+ <pre>
260
+ <span class="ruby-comment cmt"># File lib/bizratr/connector.rb, line 78</span>
261
+ 78: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">search_location</span>(<span class="ruby-identifier">ll</span>, <span class="ruby-identifier">query</span>)
262
+ 79: <span class="ruby-identifier">latlon</span> = <span class="ruby-identifier">ll</span>.<span class="ruby-identifier">split</span>(<span class="ruby-value str">','</span>)
263
+ 80: <span class="ruby-identifier">config</span> = { <span class="ruby-value">:term</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">query</span>, <span class="ruby-value">:latitude</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">latlon</span>.<span class="ruby-identifier">first</span>, <span class="ruby-value">:longitude</span> =<span class="ruby-operator">&gt;</span> <span class="ruby-identifier">latlon</span>.<span class="ruby-identifier">last</span> }
264
+ 81: <span class="ruby-identifier">result</span> = <span class="ruby-ivar">@client</span>.<span class="ruby-identifier">search</span> <span class="ruby-constant">Yelp</span><span class="ruby-operator">::</span><span class="ruby-constant">V2</span><span class="ruby-operator">::</span><span class="ruby-constant">Search</span><span class="ruby-operator">::</span><span class="ruby-constant">Request</span><span class="ruby-operator">::</span><span class="ruby-constant">GeoPoint</span>.<span class="ruby-identifier">new</span>(<span class="ruby-identifier">config</span>.<span class="ruby-identifier">merge</span>(<span class="ruby-ivar">@config</span>))
265
+ 82: <span class="ruby-identifier">result</span>[<span class="ruby-value str">'businesses'</span>].<span class="ruby-identifier">map</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">item</span><span class="ruby-operator">|</span>
266
+ 83: <span class="ruby-identifier">make_business</span>(<span class="ruby-identifier">item</span>)
267
+ 84: }
268
+ 85: <span class="ruby-keyword kw">end</span></pre>
269
+ </div>
270
+
271
+ </div>
272
+
273
+
274
+
275
+
276
+ </div>
277
+
278
+
279
+ </div>
280
+
281
+
282
+ </div>
283
+
284
+
285
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
286
+
287
+ <p>Disabled; run with --debug to generate this.</p>
288
+
289
+ </div>
290
+
291
+ <div id="validator-badges">
292
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
293
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
294
+ Rdoc Generator</a> 1.1.6</small>.</p>
295
+ </div>
296
+
297
+ </body>
298
+ </html>
299
+
data/docs/BizRatr.html ADDED
@@ -0,0 +1,186 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
7
+
8
+ <title>Module: BizRatr</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript"
13
+ charset="utf-8"></script>
14
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
15
+ charset="utf-8"></script>
16
+ <script src="./js/quicksearch.js" type="text/javascript"
17
+ charset="utf-8"></script>
18
+ <script src="./js/darkfish.js" type="text/javascript"
19
+ charset="utf-8"></script>
20
+
21
+ </head>
22
+ <body class="module">
23
+
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="file-metadata">
36
+ <div id="file-list-section" class="section">
37
+ <h3 class="section-header">In Files</h3>
38
+ <div class="section-body">
39
+ <ul>
40
+
41
+ <li><a href="./lib/bizratr/business_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
42
+ class="thickbox" title="lib/bizratr/business.rb">lib/bizratr/business.rb</a></li>
43
+
44
+ <li><a href="./lib/bizratr/connector_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
45
+ class="thickbox" title="lib/bizratr/connector.rb">lib/bizratr/connector.rb</a></li>
46
+
47
+ <li><a href="./lib/bizratr/version_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
48
+ class="thickbox" title="lib/bizratr/version.rb">lib/bizratr/version.rb</a></li>
49
+
50
+ </ul>
51
+ </div>
52
+ </div>
53
+
54
+
55
+ </div>
56
+
57
+ <div id="class-metadata">
58
+
59
+ <!-- Parent Class -->
60
+
61
+
62
+ <!-- Namespace Contents -->
63
+
64
+ <div id="namespace-list-section" class="section">
65
+ <h3 class="section-header">Namespace</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><span class="type">CLASS</span> <a href="BizRatr/Business.html">BizRatr::Business</a></li>
69
+
70
+ <li><span class="type">CLASS</span> <a href="BizRatr/Connector.html">BizRatr::Connector</a></li>
71
+
72
+ <li><span class="type">CLASS</span> <a href="BizRatr/Finder.html">BizRatr::Finder</a></li>
73
+
74
+ <li><span class="type">CLASS</span> <a href="BizRatr/FourSquareConnector.html">BizRatr::FourSquareConnector</a></li>
75
+
76
+ <li><span class="type">CLASS</span> <a href="BizRatr/GooglePlacesConnector.html">BizRatr::GooglePlacesConnector</a></li>
77
+
78
+ <li><span class="type">CLASS</span> <a href="BizRatr/YelpConnector.html">BizRatr::YelpConnector</a></li>
79
+
80
+ </ul>
81
+ </div>
82
+
83
+
84
+ <!-- Method Quickref -->
85
+
86
+
87
+ <!-- Included Modules -->
88
+
89
+ </div>
90
+
91
+ <div id="project-metadata">
92
+
93
+
94
+ <div id="fileindex-section" class="section project-section">
95
+ <h3 class="section-header">Files</h3>
96
+ <ul>
97
+
98
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
99
+
100
+ </ul>
101
+ </div>
102
+
103
+
104
+ <div id="classindex-section" class="section project-section">
105
+ <h3 class="section-header">Class Index
106
+ <span class="search-toggle"><img src="./images/find.png"
107
+ height="16" width="16" alt="[+]"
108
+ title="show/hide quicksearch" /></span></h3>
109
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
110
+ <fieldset>
111
+ <legend>Quicksearch</legend>
112
+ <input type="text" name="quicksearch" value=""
113
+ class="quicksearch-field" />
114
+ </fieldset>
115
+ </form>
116
+
117
+ <ul class="link-list">
118
+
119
+ <li><a href="./BizRatr.html">BizRatr</a></li>
120
+
121
+ <li><a href="./BizRatr/Business.html">BizRatr::Business</a></li>
122
+
123
+ <li><a href="./BizRatr/Connector.html">BizRatr::Connector</a></li>
124
+
125
+ <li><a href="./BizRatr/Finder.html">BizRatr::Finder</a></li>
126
+
127
+ <li><a href="./BizRatr/FourSquareConnector.html">BizRatr::FourSquareConnector</a></li>
128
+
129
+ <li><a href="./BizRatr/GooglePlacesConnector.html">BizRatr::GooglePlacesConnector</a></li>
130
+
131
+ <li><a href="./BizRatr/YelpConnector.html">BizRatr::YelpConnector</a></li>
132
+
133
+ </ul>
134
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
135
+ </div>
136
+
137
+
138
+ </div>
139
+ </div>
140
+
141
+ <div id="documentation">
142
+ <h1 class="module">BizRatr</h1>
143
+
144
+ <div id="description">
145
+
146
+ </div>
147
+
148
+ <!-- Constants -->
149
+
150
+ <div id="constants-list" class="section">
151
+ <h3 class="section-header">Constants</h3>
152
+ <dl>
153
+
154
+ <dt><a name="VERSION">VERSION</a></dt>
155
+
156
+ <dd class="description"></dd>
157
+
158
+
159
+ </dl>
160
+ </div>
161
+
162
+
163
+ <!-- Attributes -->
164
+
165
+
166
+ <!-- Methods -->
167
+
168
+
169
+ </div>
170
+
171
+
172
+ <div id="rdoc-debugging-section-dump" class="debugging-section">
173
+
174
+ <p>Disabled; run with --debug to generate this.</p>
175
+
176
+ </div>
177
+
178
+ <div id="validator-badges">
179
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
180
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
181
+ Rdoc Generator</a> 1.1.6</small>.</p>
182
+ </div>
183
+
184
+ </body>
185
+ </html>
186
+
@@ -0,0 +1,146 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: README.rdoc [BizRatr - Synthesized business information from many sources]</title>
10
+
11
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="./js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="./js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="./js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./README_rdoc.html">README.rdoc</a></li>
43
+
44
+ </ul>
45
+ </div>
46
+
47
+
48
+ <div id="classindex-section" class="section project-section">
49
+ <h3 class="section-header">Class Index
50
+ <span class="search-toggle"><img src="./images/find.png"
51
+ height="16" width="16" alt="[+]"
52
+ title="show/hide quicksearch" /></span></h3>
53
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
54
+ <fieldset>
55
+ <legend>Quicksearch</legend>
56
+ <input type="text" name="quicksearch" value=""
57
+ class="quicksearch-field" />
58
+ </fieldset>
59
+ </form>
60
+
61
+ <ul class="link-list">
62
+
63
+ <li><a href="./BizRatr.html">BizRatr</a></li>
64
+
65
+ <li><a href="./BizRatr/Business.html">BizRatr::Business</a></li>
66
+
67
+ <li><a href="./BizRatr/Connector.html">BizRatr::Connector</a></li>
68
+
69
+ <li><a href="./BizRatr/Finder.html">BizRatr::Finder</a></li>
70
+
71
+ <li><a href="./BizRatr/FourSquareConnector.html">BizRatr::FourSquareConnector</a></li>
72
+
73
+ <li><a href="./BizRatr/GooglePlacesConnector.html">BizRatr::GooglePlacesConnector</a></li>
74
+
75
+ <li><a href="./BizRatr/YelpConnector.html">BizRatr::YelpConnector</a></li>
76
+
77
+ </ul>
78
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
79
+ </div>
80
+
81
+
82
+ </div>
83
+ </div>
84
+
85
+ <div id="documentation">
86
+ <h1><a href="BizRatr.html">BizRatr</a></h1>
87
+ <p>
88
+ This gem pulls in business data from a variety of sources and synthesizes a
89
+ singular view of the business. Right now Yelp, Google Places, and
90
+ Foursquare are used as sources. Bizratr will collapse all of the matching
91
+ sources into a singular view of each matching business.
92
+ </p>
93
+ <pre>
94
+ &gt;&gt; require 'bizratr'
95
+ &gt;&gt; config = {
96
+ :foursquare =&gt; { :client_id =&gt; 'anid', :client_secret =&gt; 'asecret' },
97
+ :yelp =&gt; { :consumer_key =&gt; 'akey', :consumer_secret =&gt; 'asecret', :token =&gt; 'atoken', :token_secret =&gt; 'atokensecret' },
98
+ :google_places =&gt; { :key =&gt; &quot;akey&quot; }
99
+ }
100
+ &gt;&gt; finder = BizRatr::Finder.new(config)
101
+ &gt;&gt; matches = finder.search_location('40.729401,-73.996061', 'third rail coffee')
102
+ &gt;&gt; puts matches.first.rating
103
+ =&gt; 4.55
104
+ </pre>
105
+ <p>
106
+ In this example, the avgerage of the ratings from any of the sources
107
+ (normalized to a 5 point scale) is used as the rating. Each result has
108
+ address information, rating information, &#8220;like&#8221; information,
109
+ and other relevant info.
110
+ </p>
111
+ <p>
112
+ You only need to specify the config options for the services you actually
113
+ want to query. You can sign up for each at the following locations:
114
+ </p>
115
+ <ul>
116
+ <li><p>
117
+ Yelp: <a
118
+ href="http://www.yelp.com/developers/getting_started">www.yelp.com/developers/getting_started</a>
119
+ </p>
120
+ </li>
121
+ <li><p>
122
+ Google places: <a
123
+ href="https://code.google.com/apis/console/b/0/">code.google.com/apis/console/b/0/</a>
124
+ </p>
125
+ </li>
126
+ <li><p>
127
+ Foursquare: <a
128
+ href="https://foursquare.com/oauth/">foursquare.com/oauth/</a>
129
+ </p>
130
+ </li>
131
+ </ul>
132
+ <h1>Licenses</h1>
133
+ <p>
134
+ The bizratr code is distributed under the GPLv3.
135
+ </p>
136
+
137
+ </div>
138
+
139
+ <div id="validator-badges">
140
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
141
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
142
+ Rdoc Generator</a> 1.1.6</small>.</p>
143
+ </div>
144
+ </body>
145
+ </html>
146
+
data/docs/created.rid ADDED
@@ -0,0 +1,6 @@
1
+ Mon, 17 Sep 2012 10:54:54 -0400
2
+ README.rdoc Mon, 17 Sep 2012 10:51:12 -0400
3
+ lib/bizratr/business.rb Mon, 17 Sep 2012 10:47:48 -0400
4
+ lib/bizratr/connector.rb Mon, 17 Sep 2012 10:54:52 -0400
5
+ lib/bizratr/version.rb Fri, 14 Sep 2012 11:33:57 -0400
6
+ lib/bizratr.rb Fri, 14 Sep 2012 17:48:35 -0400