-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.byebug_history
More file actions
136 lines (136 loc) · 2.73 KB
/
Copy path.byebug_history
File metadata and controls
136 lines (136 loc) · 2.73 KB
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
exit
request
format
exit
result.response.body
result.body
success?(result)
result
exit
failure_result
helper.success_but_no_data?(failure_result)
exit
success_result.response.codeexit
success_result.response.code
success_result
exit
success_result.response.code
success_result.response
success_result
exit
geo_data
exit
geo_data
geo_data.to_json
geo_data
exit
data = geo_data.select { |key, value| %w[lat hon].include?(key) }
geo_data.nil?
geo_data
exit
geo_data
exit
data["postcode"] + '_' + data["country_code"]
data = geo_data["address"].select { |key, value| %w[postcode country_code].include?(key) }
exit
data = geo_data[:address].select { |key, value| [:postcode, :country_code].include?(key) }
geo_data
exit
options[:freeform_address]
options
exit
options
exit
geo_data
exit
params.expect(:query)
params[:query]
params
exit
data = geo_data.select { |key, value| [:lat, :lon].include?(key) }
data = geo_data.select { |key, value| %s[lat lon].include?(key) }
geo_data
data = geo_data.select { |key, value| %w[lat lon].include?(key) }
geo_data
exit
geo_dat
geo_data
exit
helper
helper.lat_and_lon
exit
helper.send(:lat_and_lon, {})
helper = HomeControllerHelper
exit
response.status
response
exit
self.class.get('/forecast.json', options)
options
exit
json_body.select { |key, value| %w[lat lon].include?(key) }
json_body.compact { |key, value| %w[lat lon].include?(key) }
json_body.collect { |key, value| %w[lat lon].include?(key) }
json_body
json_body.map { |key, value| %w[lat lon].include?(key) ? return_hash[key] = value : next }.compact
json_body.map { |key, value| %w[lat lon].include?(key) ? return_hash[key] = value : next }
json_body
exit
result.is_a?(Hash)
result.keys.length
result.keys
result.length
result
exit
result.body == "[]"
result.body
exit
JSON.parse(geocode_object.retrieve_from_freeform).length
JSON.parse(geocode_object.retrieve_from_freeform)
geocode_objectJSON.parse(geocode_object.retrieve_from_freeform)
geocode_object
exit
geocode_success_body.first[:place_id]
geocode_success_body.first
geocode_success_body
JSON.parse(geocode_object.retrieve_from_freeform).first["place_id"]
geocode_object.retrieve_from_freeform
exit
result.response.code.to_i == 200
result.response.code == 200
result.body == []
result.response.code
result.response.code_type
result.response.methods
result.response.status
result.response
result.status
result.body
JSON.parse(result)
result["status"]
result[:status]
result
exit
result
exit
result
exit
resultexi
result
exit
self.class.get
self.class
options[:freeform_address]
options
exit
instance.superclass
instance.singleton_class.methods.include?(:options)
instance.singleton_class.methods
instance.singleton_class
instance.singleton_methods
instance.methods.include?(:options)
instance.methods
instance
exit
GeocodeApi.new
GoecodeApi.new