/
seeds.rb
463 lines (463 loc) · 26.2 KB
/
seeds.rb
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
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
# This file should contain all the record creation needed to seed the database with its default values.
# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup).
#
# Examples:
#
# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }])
# Mayor.create(name: 'Emanuel', city: cities.first)
data = {
#calories
'calories'=>
[2401,1915,1801,1802,1803,3419,1805,3792,4618,3149,2118,3114,3315,3240,3521,3995,2929,2439,2628,3287,2826,1801,4558,3150,2485,3085,2338,2307,1801,1629],
#steps
"steps"=>
[3200,813,0,0,7,9012,21,9919,12628,9018,3231,9513,8696,9332,12237,17299,5312,4954,3871,8740,7027,0,17829,11076,7735,14311,6350,4696,0,0],
#badges
"badges"=>
[
{"badgeGradientEndColor"=>"A489E8",
"badgeGradientStartColor"=>"38216E",
"badgeType"=>"DAILY_STEPS",
"category"=>"Daily Steps",
"cheers"=>[],
"dateTime"=>"2016-03-30",
"description"=>"20,000 steps in a day",
"earnedMessage"=>"Congrats on earning your first High Tops badge!",
"encodedId"=>"228TPP",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_steps20k.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_steps20k.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_steps20k.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_steps20k.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_steps20k.png",
"marketingDescription"=>"You've walked 20,000 steps And earned the High Tops badge!",
"mobileDescription"=>"When it comes to steps, it looks like you're not playing around. This achievement was a slam dunk.",
"name"=>"High Tops (20,000 steps in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_steps20k.png",
"shareText"=>"I took 20,000 steps and earned the High Tops badge! #Fitbit",
"shortDescription"=>"20,000 steps",
"shortName"=>"High Tops",
"timesAchieved"=>1,
"value"=>20000},
{"badgeGradientEndColor"=>"00D3D6",
"badgeGradientStartColor"=>"007273",
"badgeType"=>"DAILY_STEPS",
"category"=>"Daily Steps",
"cheers"=>[],
"dateTime"=>"2016-05-20",
"description"=>"15,000 steps in a day",
"earnedMessage"=>"Congrats on earning your first Urban Boot badge!",
"encodedId"=>"228TMK",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_steps15k.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_steps15k.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_steps15k.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_steps15k.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_steps15k.png",
"marketingDescription"=>"You've walked 15,000 steps And earned the Urban Boot badge!",
"mobileDescription"=>"With a number that's almost three times more than the national average, your step count is really heating up.",
"name"=>"Urban Boot (15,000 steps in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_steps15k.png",
"shareText"=>"I took 15,000 steps and earned the Urban Boot badge! #Fitbit",
"shortDescription"=>"15,000 steps",
"shortName"=>"Urban Boot",
"timesAchieved"=>6,
"value"=>15000},
{"badgeGradientEndColor"=>"FF677C",
"badgeGradientStartColor"=>"D24958",
"badgeType"=>"DAILY_STEPS",
"category"=>"Daily Steps",
"cheers"=>[],
"dateTime"=>"2016-05-23",
"description"=>"10,000 steps in a day",
"earnedMessage"=>"Congrats on earning your first Sneakers badge!",
"encodedId"=>"228TQB",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_steps10k.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_steps10k.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_steps10k.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_steps10k.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_steps10k.png",
"marketingDescription"=>"You've walked 10,000 steps And earned the Sneaker badge!",
"mobileDescription"=>"You stepped up your game and just reached the recommended number of steps per day.",
"name"=>"Sneakers (10,000 steps in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_steps10k.png",
"shareText"=>"I took 10,000 steps and earned the Sneakers badge! #Fitbit",
"shortDescription"=>"10,000 steps",
"shortName"=>"Sneakers",
"timesAchieved"=>27,
"value"=>10000},
{"badgeGradientEndColor"=>"B0DF2A",
"badgeGradientStartColor"=>"00A550",
"badgeType"=>"DAILY_STEPS",
"category"=>"Daily Steps",
"cheers"=>[],
"dateTime"=>"2016-05-24",
"description"=>"5,000 steps in a day",
"earnedMessage"=>"Congrats on earning your first Boat Shoe badge!",
"encodedId"=>"228TQ4",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_steps5k.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_steps5k.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_steps5k.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_steps5k.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_steps5k.png",
"marketingDescription"=>"You've walked 5,000 steps And earned the Boat Shoe badge!",
"mobileDescription"=>"Congratulations on cruising your way to the first Fitbit daily step badge.",
"name"=>"Boat Shoe (5,000 steps in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_steps5k.png",
"shareText"=>"I took 5,000 steps and earned the Boat Shoe badge! #Fitbit",
"shortDescription"=>"5,000 steps",
"shortName"=>"Boat Shoe",
"timesAchieved"=>56,
"value"=>5000},
{"badgeGradientEndColor"=>"FFDB01",
"badgeGradientStartColor"=>"D99123",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-03-30",
"description"=>"175 floors in a day",
"earnedMessage"=>"Congrats on earning your first Bridge badge!",
"encodedId"=>"229849",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors175.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors175.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors175.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors175.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors175.png",
"marketingDescription"=>"You've climbed 175 floors to earn the Bridge badge!",
"mobileDescription"=>"A number this tremendous means no obstacle could get in the way of your floor count!",
"name"=>"Bridge (175 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors175.png",
"shareText"=>"I climbed 175 flights of stairs and earned the Bridge badge! #Fitbit",
"shortDescription"=>"175 floors",
"shortName"=>"Bridge",
"timesAchieved"=>1,
"value"=>175},
{"badgeGradientEndColor"=>"00A0E5",
"badgeGradientStartColor"=>"0056A3",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-03-30",
"description"=>"150 floors in a day",
"earnedMessage"=>"Congrats on earning your first Stadium badge!",
"encodedId"=>"228TC3",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors150.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors150.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors150.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors150.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors150.png",
"marketingDescription"=>"You've climbed 150 floors to earn the Stadium badge!",
"mobileDescription"=>"We need some peanuts and cracker jacks, because you're on a winning streak and the crowd is going wild!",
"name"=>"Stadium (150 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors150.png",
"shareText"=>"I climbed 150 flights of stairs and earned the Stadium badge! #Fitbit",
"shortDescription"=>"150 floors",
"shortName"=>"Stadium",
"timesAchieved"=>1,
"value"=>150},
{"badgeGradientEndColor"=>"38D7FF",
"badgeGradientStartColor"=>"2DB4D7",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-04-18",
"description"=>"125 floors in a day",
"earnedMessage"=>"Congrats on earning your first Rollercoaster badge!",
"encodedId"=>"229844",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors125.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors125.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors125.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors125.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors125.png",
"marketingDescription"=>"You've climbed 125 floors to earn the Rollercoaster badge!",
"mobileDescription"=>"That's hair-raising, jaw-dropping, mind-blowing floor count!",
"name"=>"Rollercoaster (125 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors125.png",
"shareText"=>"I climbed 125 flights of stairs and earned the Rollercoaster badge! #Fitbit",
"shortDescription"=>"125 floors",
"shortName"=>"Rollercoaster",
"timesAchieved"=>2,
"value"=>125},
{"badgeGradientEndColor"=>"B0DF2A",
"badgeGradientStartColor"=>"00A550",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-04-18",
"description"=>"100 floors in a day",
"earnedMessage"=>"Congrats on earning your first Skyscraper badge!",
"encodedId"=>"228TSL",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors100.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors100.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors100.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors100.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors100.png",
"marketingDescription"=>"You've climbed 100 floors to earn the Skyscraper badge!",
"mobileDescription"=>"You've used some pretty slick stair-climbing to take yourself to new heights!",
"name"=>"Skyscraper (100 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors100.png",
"shareText"=>"I climbed 100 flights of stairs and earned the Skyscraper badge! #Fitbit",
"shortDescription"=>"100 floors",
"shortName"=>"Skyscraper",
"timesAchieved"=>2,
"value"=>100},
{"badgeGradientEndColor"=>"FFDB01",
"badgeGradientStartColor"=>"D99123",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-05-03",
"description"=>"75 floors in a day",
"earnedMessage"=>"Congrats on earning your first Ferris Wheel badge!",
"encodedId"=>"229843",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors75.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors75.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors75.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors75.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors75.png",
"marketingDescription"=>"You've climbed 75 floors to earn the Ferris Wheel badge!",
"mobileDescription"=>"Put your hands up, celebrate, and enjoy the ride!",
"name"=>"Ferris Wheel (75 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors75.png",
"shareText"=>"I climbed 75 flights of stairs and earned the Ferris Wheel badge! #Fitbit",
"shortDescription"=>"75 floors",
"shortName"=>"Ferris Wheel",
"timesAchieved"=>5,
"value"=>75},
{"badgeGradientEndColor"=>"38D7FF",
"badgeGradientStartColor"=>"2DB4D7",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-05-03",
"description"=>"50 floors in a day",
"earnedMessage"=>"Congrats on earning your first Lighthouse badge!",
"encodedId"=>"228TT7",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors50.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors50.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors50.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors50.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors50.png",
"marketingDescription"=>"You've climbed 50 floors to earn the Lighthouse badge!",
"mobileDescription"=>"With a floor count this high, you're a beacon of inspiration to us all!",
"name"=>"Lighthouse (50 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors50.png",
"shareText"=>"I climbed 50 flights of stairs and earned the Lighthouse badge! #Fitbit",
"shortDescription"=>"50 floors",
"shortName"=>"Lighthouse",
"timesAchieved"=>10,
"value"=>50},
{"badgeGradientEndColor"=>"B0DF2A",
"badgeGradientStartColor"=>"00A550",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-05-13",
"description"=>"25 floors in a day",
"earnedMessage"=>"Congrats on earning your first Redwood Forest badge!",
"encodedId"=>"228TSZ",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors25.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors25.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors25.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors25.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors25.png",
"marketingDescription"=>"You've climbed 25 floors to earn the Redwood Forest badge!",
"mobileDescription"=>"The tallest trees on Earth can't top the heights you've been conquering.",
"name"=>"Redwood Forest (25 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors25.png",
"shareText"=>"I climbed 25 flights of stairs and earned the Redwood Forest badge! #Fitbit",
"shortDescription"=>"25 floors",
"shortName"=>"Redwood Forest",
"timesAchieved"=>29,
"value"=>25},
{"badgeGradientEndColor"=>"00D3D6",
"badgeGradientStartColor"=>"007273",
"badgeType"=>"DAILY_FLOORS",
"category"=>"Daily Climb",
"cheers"=>[],
"dateTime"=>"2016-05-24",
"description"=>"10 floors in a day",
"earnedMessage"=>"Congrats on earning your first Happy Hill badge!",
"encodedId"=>"228TTM",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_daily_floors10.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_daily_floors10.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_daily_floors10.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_daily_floors10.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_daily_floors10.png",
"marketingDescription"=>"You've climbed 10 floors to earn the Happy Hill badge!",
"mobileDescription"=>"You're taking yourself to new heights and taking home the first badge!",
"name"=>"Happy Hill (10 floors in a day)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_daily_floors10.png",
"shareText"=>"I climbed 10 flights of stairs and earned the Happy Hill badge! #Fitbit",
"shortDescription"=>"10 floors",
"shortName"=>"Happy Hill",
"timesAchieved"=>54,
"value"=>10},
{"badgeGradientEndColor"=>"00A0E5",
"badgeGradientStartColor"=>"0056A3",
"badgeType"=>"LIFETIME_DISTANCE",
"category"=>"Lifetime Distance",
"cheers"=>[],
"dateTime"=>"2016-05-22",
"description"=>"250 lifetime miles",
"earnedMessage"=>"Whoa! You've earned the London Underground badge!",
"encodedId"=>"22B8M8",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_lifetime_miles250.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_lifetime_miles250.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_lifetime_miles250.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_lifetime_miles250.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_lifetime_miles250.png",
"marketingDescription"=>"By reaching 250 lifetime miles, you've earned the Tube badge!",
"mobileDescription"=>
"You've walked the length of the world's first underground railway and are laying the tracks for some big things in the future.",
"name"=>"London Underground (250 lifetime miles)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_lifetime_miles250.png",
"shareText"=>"I covered 250 miles with my #Fitbit and earned the London Underground badge.",
"shortDescription"=>"250 miles",
"shortName"=>"London Underground",
"timesAchieved"=>1,
"unit"=>"MILES",
"value"=>250},
{"badgeGradientEndColor"=>"38D7FF",
"badgeGradientStartColor"=>"2DB4D7",
"badgeType"=>"LIFETIME_DISTANCE",
"category"=>"Lifetime Distance",
"cheers"=>[],
"dateTime"=>"2016-03-08",
"description"=>"70 lifetime miles",
"earnedMessage"=>"Whoa! You've earned the Penguin March badge!",
"encodedId"=>"22B8M7",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_lifetime_miles70.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_lifetime_miles70.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_lifetime_miles70.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_lifetime_miles70.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_lifetime_miles70.png",
"marketingDescription"=>"By reaching 70 lifetime miles, you've earned the Penguin March badge!",
"mobileDescription"=>"You matched the distance of the March of the Penguins—the annual trip emperor penguins make to their breeding grounds.",
"name"=>"Penguin March (70 lifetime miles)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_lifetime_miles70.png",
"shareText"=>"I covered 70 miles with my #Fitbit and earned the Penguin March badge.",
"shortDescription"=>"70 miles",
"shortName"=>"Penguin March",
"timesAchieved"=>1,
"unit"=>"MILES",
"value"=>70},
{"badgeGradientEndColor"=>"38D7FF",
"badgeGradientStartColor"=>"2DB4D7",
"badgeType"=>"LIFETIME_DISTANCE",
"category"=>"Lifetime Distance",
"cheers"=>[],
"dateTime"=>"2016-01-10",
"description"=>"26 lifetime miles",
"earnedMessage"=>"Whoa! You've earned the Marathon badge!",
"encodedId"=>"22B8MB",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_lifetime_miles26_2.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_lifetime_miles26_2.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_lifetime_miles26_2.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_lifetime_miles26_2.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_lifetime_miles26_2.png",
"marketingDescription"=>"By reaching 26 lifetime miles, you've earned the Marathon badge!",
"mobileDescription"=>
"You've walked your way to your first lifetime miles badge. If this is just the starting line, we can't wait to see where you finish!",
"name"=>"Marathon (26 lifetime miles)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_lifetime_miles26_2.png",
"shareText"=>"I covered 26 miles with my #Fitbit and earned the Marathon badge.",
"shortDescription"=>"26 miles",
"shortName"=>"Marathon",
"timesAchieved"=>1,
"unit"=>"MILES",
"value"=>26},
{"badgeGradientEndColor"=>"00D3D6",
"badgeGradientStartColor"=>"007273",
"badgeType"=>"LIFETIME_FLOORS",
"category"=>"Lifetime Climb",
"cheers"=>[],
"dateTime"=>"2016-05-22",
"description"=>"2,000 lifetime floors",
"earnedMessage"=>"Yipee! You've earned the Hot Air Balloon badge!",
"encodedId"=>"228T9T",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_lifetime_floors2k.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_lifetime_floors2k.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_lifetime_floors2k.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_lifetime_floors2k.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_lifetime_floors2k.png",
"marketingDescription"=>"By climbing 2000 lifetime floors, you've earned the Hot Air Balloon badge!",
"mobileDescription"=>"That's as high as a hot air balloon! You are really blowing up the lifetime badges list.",
"name"=>"Hot Air Balloon (2,000 lifetime floors)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_lifetime_floors2k.png",
"shareText"=>"I climbed 2,000 floors with my #Fitbit and earned the Hot Air Balloon badge.",
"shortDescription"=>"2,000 floors",
"shortName"=>"Hot Air Balloon",
"timesAchieved"=>1,
"value"=>2000},
{"badgeGradientEndColor"=>"FF677C",
"badgeGradientStartColor"=>"D24958",
"badgeType"=>"LIFETIME_FLOORS",
"category"=>"Lifetime Climb",
"cheers"=>[],
"dateTime"=>"2016-04-04",
"description"=>"1,000 lifetime floors",
"earnedMessage"=>"Yipee! You've earned the Skydiver badge!",
"encodedId"=>"228T9C",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_lifetime_floors1k.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_lifetime_floors1k.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_lifetime_floors1k.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_lifetime_floors1k.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_lifetime_floors1k.png",
"marketingDescription"=>"By climbing 1000 lifetime floors, you've earned the Skydiver badge!",
"mobileDescription"=>"That's as high as you'd go to skydive! Cross another one off the ol' fitness bucket list.",
"name"=>"Skydiver (1,000 lifetime floors)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_lifetime_floors1k.png",
"shareText"=>"I climbed 1,000 floors with my #Fitbit and earned the Skydiver badge.",
"shortDescription"=>"1,000 floors",
"shortName"=>"Skydiver",
"timesAchieved"=>1,
"value"=>1000},
{"badgeGradientEndColor"=>"FFDB01",
"badgeGradientStartColor"=>"D99123",
"badgeType"=>"LIFETIME_FLOORS",
"category"=>"Lifetime Climb",
"cheers"=>[],
"dateTime"=>"2016-03-21",
"description"=>"500 lifetime floors",
"earnedMessage"=>"Yipee! You've earned the Helicopter badge!",
"encodedId"=>"228TB8",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_lifetime_floors500.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_lifetime_floors500.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_lifetime_floors500.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_lifetime_floors500.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_lifetime_floors500.png",
"marketingDescription"=>"By climbing 500 lifetime floors, you've earned the Helicopter badge!",
"mobileDescription"=>"That's the altitude of a helicopter. Heli-yes, you totally just did that!",
"name"=>"Helicopter (500 lifetime floors)",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_lifetime_floors500.png",
"shareText"=>"I climbed 500 floors with my #Fitbit and earned the Helicopter badge.",
"shortDescription"=>"500 floors",
"shortName"=>"Helicopter",
"timesAchieved"=>1,
"value"=>500},
{"badgeGradientEndColor"=>"00D3D6",
"badgeGradientStartColor"=>"007273",
"badgeType"=>"GOAL_BASED_WEIGHT_LOSS",
"category"=>"Weight Goal",
"cheers"=>[],
"dateTime"=>"2016-03-07",
"description"=>"-5 pounds",
"earnedMessage"=>"You've lost 5 lbs! Congrats on progress towards your weight goal.",
"encodedId"=>"2297TY",
"image100px"=>"http://static0.fitbit.com/images/badges_new/100px/badge_goal_weight5.png",
"image125px"=>"http://static0.fitbit.com/images/badges_new/125px/badge_goal_weight5.png",
"image300px"=>"http://static0.fitbit.com/images/badges_new/300px/badge_goal_weight5.png",
"image50px"=>"http://static0.fitbit.com/images/badges_new/badge_goal_weight5.png",
"image75px"=>"http://static0.fitbit.com/images/badges_new/75px/badge_goal_weight5.png",
"marketingDescription"=>"Way to go! You've lost 5 pounds.",
"mobileDescription"=>"All your hard work paid off! Congratulations on reaching this milestone.",
"name"=>"-5 lb Weight Loss",
"shareImage640px"=>"http://static0.fitbit.com/images/badges_new/386px/shareLocalized/en_US/badge_goal_weight5_loss.png",
"shareText"=>"I lost 5 pounds on #Fitbit.",
"shortDescription"=>"-5 pounds",
"shortName"=>"-5 lb Weight Loss",
"timesAchieved"=>1,
"unit"=>"POUNDS",
"value"=>5}
]
}
x = Demo.create(data: data)