-
Notifications
You must be signed in to change notification settings - Fork 0
/
.byebug_history
160 lines (160 loc) · 2.18 KB
/
.byebug_history
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
c
response
c
response
c
response
c
location
c
price
location
c
sorted = result.sort_by{|spin| -spin[:spun]}
Spin.spin_count
Spin.all
Spin
sorted = result.sort{|spin| spin[:spun]}
sorted.to_json()
pp sorted
sorted = result.sort{|spin| -spin[:spun]}
sorted[2]
sorted[0]
sorted[0].keys
sorted[0]
pp sorted
sorted
c
result
exit
result
c
Spin.spin_count
result
sorted
c
exit
c
uniqueRestuarants.count
uniqueRestuarants
uniqueRestaurant
uniquerestaurant
restaurants
exit
restaurants
continue
restaurants
continue
hash
spin
uniqueRestuarants
uniqueRestaurants
exit
hash[:id]
spin['yelp_id']
continue
hash['yelp_id']
spin['yelp_id']
continue
count
c
hash.sort_by{|k,v| -v}
hash.sort_by{|k,v| v}
c
hash.key?(spin.yelp_id)
hash.key?([spin.yelp_id])
spin.yelp_id
hash
hash.key?([spin.yelp_id])
hash[spin.yelp_id].key?
if hash[spin.yelp_id].key?
if hash[spin.yelp_id]
hash[spin.yelp_id] += 1
hash
hash[spin.yelp_id] = 1
hash
c
Spin.spinny
Spin.yay
Spin.all
Spin.create({yelp_id: results["id"], name: results["name"]})
c
Spin.all[0].yelp_id
end
else
hash[spin.yelp_id] = 1
if hash[spin.yelp_id]
self.all.each{|spin|
hash = {}
Spin.all[0].count
Spin[0].count
Spin.count
Spin.all
Spin.create({yelp_id: results["id"], name: results["name"]})
c
Spin.create({yelp_id: results["id"], name: results["name"]})
results["id"]
Spin.all[0]
Spin.all[0].yelp_id
Spin.all[0]
spin.all.count
Spin.all
Spin.count
Spin.all
Spin.count
c
Spin.count
c
s.count
s = Spin.first
Spin.all
c
Spin.all
Spin.create(yelp_id: results["id"], name: results["name"])
Spin.all
c
Spin.create
Spin.create(yelp_id: results["id"], name: results["name"])
Spin.all
c
Spin.create(yelp_id: results["id"], name: results["name"])
Spin.all
c
Spin.create(yelp_id: results["id"], name: results["name"])
Spin.create(yelp_id: results["id"], name: results["name"])
Spin.create(yelp_id: results["id"], name: results["name"])
Spin.all
c
q
exit
results["id"]
results["name"]
results[":name"]
results[:name]
results
results.id
results.name
results
c
response
exit
reviews
results
response
results = Adapter.business(id)
id
result
response
exit
params
exit
params
id
c
results
exit
results
c
results
c
exit