ndb-ruby 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. checksums.yaml +7 -0
  2. data/.codeclimate.yml +11 -0
  3. data/.gitignore +9 -0
  4. data/.rubocop.yml +1055 -0
  5. data/.travis.yml +4 -0
  6. data/CODE_OF_CONDUCT.md +13 -0
  7. data/Gemfile +4 -0
  8. data/LICENSE.txt +21 -0
  9. data/README.md +80 -0
  10. data/Rakefile +4 -0
  11. data/bin/console +14 -0
  12. data/bin/setup +7 -0
  13. data/lib/ndb-ruby.rb +41 -0
  14. data/lib/ndb/food_report.rb +13 -0
  15. data/lib/ndb/list.rb +21 -0
  16. data/lib/ndb/nutrient_report.rb +21 -0
  17. data/lib/ndb/search.rb +24 -0
  18. data/lib/ndb/version.rb +3 -0
  19. data/ndb-ruby.gemspec +32 -0
  20. data/spec/fixtures/vcr_cassettes/food_report_ndbno.yml +766 -0
  21. data/spec/fixtures/vcr_cassettes/food_report_type.yml +1278 -0
  22. data/spec/fixtures/vcr_cassettes/list_max.yml +574 -0
  23. data/spec/fixtures/vcr_cassettes/list_offset.yml +324 -0
  24. data/spec/fixtures/vcr_cassettes/list_sort.yml +324 -0
  25. data/spec/fixtures/vcr_cassettes/list_type.yml +324 -0
  26. data/spec/fixtures/vcr_cassettes/nutrient_report_food_group.yml +829 -0
  27. data/spec/fixtures/vcr_cassettes/nutrient_report_max.yml +1576 -0
  28. data/spec/fixtures/vcr_cassettes/nutrient_report_ndbno.yml +89 -0
  29. data/spec/fixtures/vcr_cassettes/nutrient_report_nutrients.yml +824 -0
  30. data/spec/fixtures/vcr_cassettes/nutrient_report_offset.yml +824 -0
  31. data/spec/fixtures/vcr_cassettes/nutrient_report_subset.yml +826 -0
  32. data/spec/fixtures/vcr_cassettes/search_all_foods.yml +375 -0
  33. data/spec/fixtures/vcr_cassettes/search_food_group.yml +375 -0
  34. data/spec/fixtures/vcr_cassettes/search_max_rows.yml +675 -0
  35. data/spec/fixtures/vcr_cassettes/search_query.yml +375 -0
  36. data/spec/fixtures/vcr_cassettes/search_sort_name.yml +213 -0
  37. data/spec/ndb/food_report_spec.rb +19 -0
  38. data/spec/ndb/list_spec.rb +33 -0
  39. data/spec/ndb/nutrient_report_spec.rb +49 -0
  40. data/spec/ndb/search_spec.rb +59 -0
  41. data/spec/ndb_spec.rb +13 -0
  42. data/spec/spec_helper.rb +21 -0
  43. metadata +211 -0
@@ -0,0 +1,824 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://api.nal.usda.gov/ndb/nutrients?api_key=DEMO_KEY&format=JSON&fq=&max=50&nutrients=205&offset=1&sort=f&subset=0
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ User-Agent:
11
+ - Faraday v0.9.1
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - "*/*"
16
+ response:
17
+ status:
18
+ code: 200
19
+ message: OK
20
+ headers:
21
+ Accept-Ranges:
22
+ - bytes
23
+ Access-Control-Allow-Credentials:
24
+ - 'true'
25
+ Access-Control-Allow-Headers:
26
+ - DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type
27
+ Access-Control-Allow-Methods:
28
+ - GET, POST, OPTIONS
29
+ Access-Control-Allow-Origin:
30
+ - "*"
31
+ Age:
32
+ - '0'
33
+ Content-Type:
34
+ - application/json;charset=UTF-8
35
+ Date:
36
+ - Sun, 27 Sep 2015 01:09:26 GMT
37
+ Location:
38
+ - ''
39
+ Server:
40
+ - nginx
41
+ Vary:
42
+ - Accept-Encoding
43
+ Via:
44
+ - 1.1 varnish-v4
45
+ X-Cache:
46
+ - MISS
47
+ X-Ratelimit-Limit:
48
+ - '1000'
49
+ X-Ratelimit-Remaining:
50
+ - '969'
51
+ X-Varnish:
52
+ - '41775296'
53
+ Transfer-Encoding:
54
+ - chunked
55
+ Connection:
56
+ - keep-alive
57
+ body:
58
+ encoding: ASCII-8BIT
59
+ string: |-
60
+ {
61
+ "report": {
62
+ "sr": "27",
63
+ "groups": "All groups",
64
+ "subset": "All foods",
65
+ "end": 51,
66
+ "start": 1,
67
+ "total": 8372,
68
+ "foods": [
69
+ {
70
+ "ndbno": "09002",
71
+ "name": "Acerola juice, raw",
72
+ "weight": 242.0,
73
+ "measure": "1.0 cup",
74
+ "nutrients": [
75
+ {
76
+ "nutrient_id": "205",
77
+ "nutrient": "Carbohydrate, by difference",
78
+ "unit": "g",
79
+ "value": "11.62",
80
+ "gm": 4.8
81
+ }
82
+ ]
83
+ },
84
+ {
85
+ "ndbno": "09001",
86
+ "name": "Acerola, (west indian cherry), raw",
87
+ "weight": 98.0,
88
+ "measure": "1.0 cup",
89
+ "nutrients": [
90
+ {
91
+ "nutrient_id": "205",
92
+ "nutrient": "Carbohydrate, by difference",
93
+ "unit": "g",
94
+ "value": "7.54",
95
+ "gm": 7.69
96
+ }
97
+ ]
98
+ },
99
+ {
100
+ "ndbno": "14006",
101
+ "name": "Alcoholic beverage, beer, light",
102
+ "weight": 29.5,
103
+ "measure": "1.0 fl oz",
104
+ "nutrients": [
105
+ {
106
+ "nutrient_id": "205",
107
+ "nutrient": "Carbohydrate, by difference",
108
+ "unit": "g",
109
+ "value": "0.48",
110
+ "gm": 1.64
111
+ }
112
+ ]
113
+ },
114
+ {
115
+ "ndbno": "14007",
116
+ "name": "Alcoholic beverage, beer, light, BUD LIGHT",
117
+ "weight": 29.5,
118
+ "measure": "1.0 fl oz",
119
+ "nutrients": [
120
+ {
121
+ "nutrient_id": "205",
122
+ "nutrient": "Carbohydrate, by difference",
123
+ "unit": "g",
124
+ "value": "0.38",
125
+ "gm": 1.3
126
+ }
127
+ ]
128
+ },
129
+ {
130
+ "ndbno": "14005",
131
+ "name": "Alcoholic beverage, beer, light, BUDWEISER SELECT",
132
+ "weight": 30.0,
133
+ "measure": "1.0 fluid ounce",
134
+ "nutrients": [
135
+ {
136
+ "nutrient_id": "205",
137
+ "nutrient": "Carbohydrate, by difference",
138
+ "unit": "g",
139
+ "value": "0.26",
140
+ "gm": 0.87
141
+ }
142
+ ]
143
+ },
144
+ {
145
+ "ndbno": "14013",
146
+ "name": "Alcoholic beverage, beer, light, MICHELOB ULTRA",
147
+ "weight": 29.5,
148
+ "measure": "1.0 fl oz",
149
+ "nutrients": [
150
+ {
151
+ "nutrient_id": "205",
152
+ "nutrient": "Carbohydrate, by difference",
153
+ "unit": "g",
154
+ "value": "0.22",
155
+ "gm": 0.73
156
+ }
157
+ ]
158
+ },
159
+ {
160
+ "ndbno": "14003",
161
+ "name": "Alcoholic beverage, beer, regular, all",
162
+ "weight": 29.7,
163
+ "measure": "1.0 fl oz",
164
+ "nutrients": [
165
+ {
166
+ "nutrient_id": "205",
167
+ "nutrient": "Carbohydrate, by difference",
168
+ "unit": "g",
169
+ "value": "1.05",
170
+ "gm": 3.55
171
+ }
172
+ ]
173
+ },
174
+ {
175
+ "ndbno": "14004",
176
+ "name": "Alcoholic beverage, beer, regular, BUDWEISER",
177
+ "weight": 29.8,
178
+ "measure": "1.0 fl oz",
179
+ "nutrients": [
180
+ {
181
+ "nutrient_id": "205",
182
+ "nutrient": "Carbohydrate, by difference",
183
+ "unit": "g",
184
+ "value": "0.89",
185
+ "gm": 2.97
186
+ }
187
+ ]
188
+ },
189
+ {
190
+ "ndbno": "14034",
191
+ "name": "Alcoholic beverage, creme de menthe, 72 proof",
192
+ "weight": 33.6,
193
+ "measure": "1.0 fl oz",
194
+ "nutrients": [
195
+ {
196
+ "nutrient_id": "205",
197
+ "nutrient": "Carbohydrate, by difference",
198
+ "unit": "g",
199
+ "value": "13.98",
200
+ "gm": 41.6
201
+ }
202
+ ]
203
+ },
204
+ {
205
+ "ndbno": "14009",
206
+ "name": "Alcoholic beverage, daiquiri, canned",
207
+ "weight": 30.5,
208
+ "measure": "1.0 fl oz",
209
+ "nutrients": [
210
+ {
211
+ "nutrient_id": "205",
212
+ "nutrient": "Carbohydrate, by difference",
213
+ "unit": "g",
214
+ "value": "4.79",
215
+ "gm": 15.7
216
+ }
217
+ ]
218
+ },
219
+ {
220
+ "ndbno": "14010",
221
+ "name": "Alcoholic beverage, daiquiri, prepared-from-recipe",
222
+ "weight": 30.2,
223
+ "measure": "1.0 fl oz",
224
+ "nutrients": [
225
+ {
226
+ "nutrient_id": "205",
227
+ "nutrient": "Carbohydrate, by difference",
228
+ "unit": "g",
229
+ "value": "2.10",
230
+ "gm": 6.94
231
+ }
232
+ ]
233
+ },
234
+ {
235
+ "ndbno": "14533",
236
+ "name": "Alcoholic beverage, distilled, all (gin, rum, vodka, whiskey) 100 proof",
237
+ "weight": 27.8,
238
+ "measure": "1.0 fl oz",
239
+ "nutrients": [
240
+ {
241
+ "nutrient_id": "205",
242
+ "nutrient": "Carbohydrate, by difference",
243
+ "unit": "g",
244
+ "value": "0.00",
245
+ "gm": 0.0
246
+ }
247
+ ]
248
+ },
249
+ {
250
+ "ndbno": "14037",
251
+ "name": "Alcoholic beverage, distilled, all (gin, rum, vodka, whiskey) 80 proof",
252
+ "weight": 27.8,
253
+ "measure": "1.0 fl oz",
254
+ "nutrients": [
255
+ {
256
+ "nutrient_id": "205",
257
+ "nutrient": "Carbohydrate, by difference",
258
+ "unit": "g",
259
+ "value": "0.00",
260
+ "gm": 0.0
261
+ }
262
+ ]
263
+ },
264
+ {
265
+ "ndbno": "14550",
266
+ "name": "Alcoholic beverage, distilled, all (gin, rum, vodka, whiskey) 86 proof",
267
+ "weight": 27.8,
268
+ "measure": "1.0 fl oz",
269
+ "nutrients": [
270
+ {
271
+ "nutrient_id": "205",
272
+ "nutrient": "Carbohydrate, by difference",
273
+ "unit": "g",
274
+ "value": "0.03",
275
+ "gm": 0.1
276
+ }
277
+ ]
278
+ },
279
+ {
280
+ "ndbno": "14551",
281
+ "name": "Alcoholic beverage, distilled, all (gin, rum, vodka, whiskey) 90 proof",
282
+ "weight": 27.8,
283
+ "measure": "1.0 fl oz",
284
+ "nutrients": [
285
+ {
286
+ "nutrient_id": "205",
287
+ "nutrient": "Carbohydrate, by difference",
288
+ "unit": "g",
289
+ "value": "0.00",
290
+ "gm": 0.0
291
+ }
292
+ ]
293
+ },
294
+ {
295
+ "ndbno": "14532",
296
+ "name": "Alcoholic beverage, distilled, all (gin, rum, vodka, whiskey) 94 proof",
297
+ "weight": 27.8,
298
+ "measure": "1.0 fl oz",
299
+ "nutrients": [
300
+ {
301
+ "nutrient_id": "205",
302
+ "nutrient": "Carbohydrate, by difference",
303
+ "unit": "g",
304
+ "value": "0.00",
305
+ "gm": 0.0
306
+ }
307
+ ]
308
+ },
309
+ {
310
+ "ndbno": "14049",
311
+ "name": "Alcoholic beverage, distilled, gin, 90 proof",
312
+ "weight": 27.8,
313
+ "measure": "1.0 fl oz",
314
+ "nutrients": [
315
+ {
316
+ "nutrient_id": "205",
317
+ "nutrient": "Carbohydrate, by difference",
318
+ "unit": "g",
319
+ "value": "0.00",
320
+ "gm": 0.0
321
+ }
322
+ ]
323
+ },
324
+ {
325
+ "ndbno": "14050",
326
+ "name": "Alcoholic beverage, distilled, rum, 80 proof",
327
+ "weight": 27.8,
328
+ "measure": "1.0 fl oz",
329
+ "nutrients": [
330
+ {
331
+ "nutrient_id": "205",
332
+ "nutrient": "Carbohydrate, by difference",
333
+ "unit": "g",
334
+ "value": "0.00",
335
+ "gm": 0.0
336
+ }
337
+ ]
338
+ },
339
+ {
340
+ "ndbno": "14051",
341
+ "name": "Alcoholic beverage, distilled, vodka, 80 proof",
342
+ "weight": 27.8,
343
+ "measure": "1.0 fl oz",
344
+ "nutrients": [
345
+ {
346
+ "nutrient_id": "205",
347
+ "nutrient": "Carbohydrate, by difference",
348
+ "unit": "g",
349
+ "value": "0.00",
350
+ "gm": 0.0
351
+ }
352
+ ]
353
+ },
354
+ {
355
+ "ndbno": "14052",
356
+ "name": "Alcoholic beverage, distilled, whiskey, 86 proof",
357
+ "weight": 27.8,
358
+ "measure": "1.0 fl oz",
359
+ "nutrients": [
360
+ {
361
+ "nutrient_id": "205",
362
+ "nutrient": "Carbohydrate, by difference",
363
+ "unit": "g",
364
+ "value": "0.03",
365
+ "gm": 0.1
366
+ }
367
+ ]
368
+ },
369
+ {
370
+ "ndbno": "14415",
371
+ "name": "Alcoholic beverage, liqueur, coffee with cream, 34 proof",
372
+ "weight": 31.1,
373
+ "measure": "1.0 fl oz",
374
+ "nutrients": [
375
+ {
376
+ "nutrient_id": "205",
377
+ "nutrient": "Carbohydrate, by difference",
378
+ "unit": "g",
379
+ "value": "6.50",
380
+ "gm": 20.9
381
+ }
382
+ ]
383
+ },
384
+ {
385
+ "ndbno": "14414",
386
+ "name": "Alcoholic beverage, liqueur, coffee, 53 proof",
387
+ "weight": 34.8,
388
+ "measure": "1.0 fl oz",
389
+ "nutrients": [
390
+ {
391
+ "nutrient_id": "205",
392
+ "nutrient": "Carbohydrate, by difference",
393
+ "unit": "g",
394
+ "value": "16.29",
395
+ "gm": 46.8
396
+ }
397
+ ]
398
+ },
399
+ {
400
+ "ndbno": "14534",
401
+ "name": "Alcoholic beverage, liqueur, coffee, 63 proof",
402
+ "weight": 34.8,
403
+ "measure": "1.0 fl oz",
404
+ "nutrients": [
405
+ {
406
+ "nutrient_id": "205",
407
+ "nutrient": "Carbohydrate, by difference",
408
+ "unit": "g",
409
+ "value": "11.21",
410
+ "gm": 32.2
411
+ }
412
+ ]
413
+ },
414
+ {
415
+ "ndbno": "14015",
416
+ "name": "Alcoholic beverage, pina colada, canned",
417
+ "weight": 32.6,
418
+ "measure": "1.0 fl oz",
419
+ "nutrients": [
420
+ {
421
+ "nutrient_id": "205",
422
+ "nutrient": "Carbohydrate, by difference",
423
+ "unit": "g",
424
+ "value": "9.00",
425
+ "gm": 27.6
426
+ }
427
+ ]
428
+ },
429
+ {
430
+ "ndbno": "14017",
431
+ "name": "Alcoholic beverage, pina colada, prepared-from-recipe",
432
+ "weight": 31.4,
433
+ "measure": "1.0 fl oz",
434
+ "nutrients": [
435
+ {
436
+ "nutrient_id": "205",
437
+ "nutrient": "Carbohydrate, by difference",
438
+ "unit": "g",
439
+ "value": "7.12",
440
+ "gm": 22.66
441
+ }
442
+ ]
443
+ },
444
+ {
445
+ "ndbno": "43479",
446
+ "name": "Alcoholic beverage, rice (sake)",
447
+ "weight": 29.1,
448
+ "measure": "1.0 fl oz",
449
+ "nutrients": [
450
+ {
451
+ "nutrient_id": "205",
452
+ "nutrient": "Carbohydrate, by difference",
453
+ "unit": "g",
454
+ "value": "1.46",
455
+ "gm": 5.0
456
+ }
457
+ ]
458
+ },
459
+ {
460
+ "ndbno": "14019",
461
+ "name": "Alcoholic beverage, tequila sunrise, canned",
462
+ "weight": 31.1,
463
+ "measure": "1.0 fl oz",
464
+ "nutrients": [
465
+ {
466
+ "nutrient_id": "205",
467
+ "nutrient": "Carbohydrate, by difference",
468
+ "unit": "g",
469
+ "value": "3.51",
470
+ "gm": 11.3
471
+ }
472
+ ]
473
+ },
474
+ {
475
+ "ndbno": "14027",
476
+ "name": "Alcoholic beverage, whiskey sour, canned",
477
+ "weight": 30.8,
478
+ "measure": "1.0 fl oz",
479
+ "nutrients": [
480
+ {
481
+ "nutrient_id": "205",
482
+ "nutrient": "Carbohydrate, by difference",
483
+ "unit": "g",
484
+ "value": "4.13",
485
+ "gm": 13.4
486
+ }
487
+ ]
488
+ },
489
+ {
490
+ "ndbno": "14029",
491
+ "name": "Alcoholic beverage, whiskey sour, prepared from item 14028",
492
+ "weight": 30.4,
493
+ "measure": "1.0 fl oz",
494
+ "nutrients": [
495
+ {
496
+ "nutrient_id": "205",
497
+ "nutrient": "Carbohydrate, by difference",
498
+ "unit": "g",
499
+ "value": "3.90",
500
+ "gm": 12.82
501
+ }
502
+ ]
503
+ },
504
+ {
505
+ "ndbno": "14025",
506
+ "name": "Alcoholic beverage, whiskey sour, prepared with water, whiskey and powder mix",
507
+ "weight": 29.4,
508
+ "measure": "1.0 fl oz",
509
+ "nutrients": [
510
+ {
511
+ "nutrient_id": "205",
512
+ "nutrient": "Carbohydrate, by difference",
513
+ "unit": "g",
514
+ "value": "4.66",
515
+ "gm": 15.85
516
+ }
517
+ ]
518
+ },
519
+ {
520
+ "ndbno": "43154",
521
+ "name": "Alcoholic beverage, wine, cooking",
522
+ "weight": 4.9,
523
+ "measure": "1.0 tsp",
524
+ "nutrients": [
525
+ {
526
+ "nutrient_id": "205",
527
+ "nutrient": "Carbohydrate, by difference",
528
+ "unit": "g",
529
+ "value": "0.31",
530
+ "gm": 6.3
531
+ }
532
+ ]
533
+ },
534
+ {
535
+ "ndbno": "14536",
536
+ "name": "Alcoholic beverage, wine, dessert, dry",
537
+ "weight": 29.5,
538
+ "measure": "1.0 fl oz",
539
+ "nutrients": [
540
+ {
541
+ "nutrient_id": "205",
542
+ "nutrient": "Carbohydrate, by difference",
543
+ "unit": "g",
544
+ "value": "3.44",
545
+ "gm": 11.67
546
+ }
547
+ ]
548
+ },
549
+ {
550
+ "ndbno": "14057",
551
+ "name": "Alcoholic beverage, wine, dessert, sweet",
552
+ "weight": 29.5,
553
+ "measure": "1.0 fl oz",
554
+ "nutrients": [
555
+ {
556
+ "nutrient_id": "205",
557
+ "nutrient": "Carbohydrate, by difference",
558
+ "unit": "g",
559
+ "value": "4.04",
560
+ "gm": 13.69
561
+ }
562
+ ]
563
+ },
564
+ {
565
+ "ndbno": "43155",
566
+ "name": "Alcoholic beverage, wine, light",
567
+ "weight": 29.5,
568
+ "measure": "1.0 fl oz",
569
+ "nutrients": [
570
+ {
571
+ "nutrient_id": "205",
572
+ "nutrient": "Carbohydrate, by difference",
573
+ "unit": "g",
574
+ "value": "0.35",
575
+ "gm": 1.17
576
+ }
577
+ ]
578
+ },
579
+ {
580
+ "ndbno": "14084",
581
+ "name": "Alcoholic beverage, wine, table, all",
582
+ "weight": 148.0,
583
+ "measure": "1.0 serving 5 fl oz",
584
+ "nutrients": [
585
+ {
586
+ "nutrient_id": "205",
587
+ "nutrient": "Carbohydrate, by difference",
588
+ "unit": "g",
589
+ "value": "4.03",
590
+ "gm": 2.72
591
+ }
592
+ ]
593
+ },
594
+ {
595
+ "ndbno": "14096",
596
+ "name": "Alcoholic beverage, wine, table, red",
597
+ "weight": 29.4,
598
+ "measure": "1.0 fl oz",
599
+ "nutrients": [
600
+ {
601
+ "nutrient_id": "205",
602
+ "nutrient": "Carbohydrate, by difference",
603
+ "unit": "g",
604
+ "value": "0.77",
605
+ "gm": 2.61
606
+ }
607
+ ]
608
+ },
609
+ {
610
+ "ndbno": "14101",
611
+ "name": "Alcoholic Beverage, wine, table, red, Barbera",
612
+ "weight": 29.4,
613
+ "measure": "1.0 fl oz",
614
+ "nutrients": [
615
+ {
616
+ "nutrient_id": "205",
617
+ "nutrient": "Carbohydrate, by difference",
618
+ "unit": "g",
619
+ "value": "0.82",
620
+ "gm": 2.79
621
+ }
622
+ ]
623
+ },
624
+ {
625
+ "ndbno": "14152",
626
+ "name": "Alcoholic Beverage, wine, table, red, Burgundy",
627
+ "weight": 29.5,
628
+ "measure": "1.0 fl oz",
629
+ "nutrients": [
630
+ {
631
+ "nutrient_id": "205",
632
+ "nutrient": "Carbohydrate, by difference",
633
+ "unit": "g",
634
+ "value": "1.09",
635
+ "gm": 3.69
636
+ }
637
+ ]
638
+ },
639
+ {
640
+ "ndbno": "14098",
641
+ "name": "Alcoholic Beverage, wine, table, red, Cabernet Franc",
642
+ "weight": 29.0,
643
+ "measure": "1.0 fluid ounce",
644
+ "nutrients": [
645
+ {
646
+ "nutrient_id": "205",
647
+ "nutrient": "Carbohydrate, by difference",
648
+ "unit": "g",
649
+ "value": "0.71",
650
+ "gm": 2.45
651
+ }
652
+ ]
653
+ },
654
+ {
655
+ "ndbno": "14097",
656
+ "name": "Alcoholic Beverage, wine, table, red, Cabernet Sauvignon",
657
+ "weight": 29.0,
658
+ "measure": "1.0 fluid ounce",
659
+ "nutrients": [
660
+ {
661
+ "nutrient_id": "205",
662
+ "nutrient": "Carbohydrate, by difference",
663
+ "unit": "g",
664
+ "value": "0.75",
665
+ "gm": 2.6
666
+ }
667
+ ]
668
+ },
669
+ {
670
+ "ndbno": "14109",
671
+ "name": "Alcoholic Beverage, wine, table, red, Carignane",
672
+ "weight": 29.4,
673
+ "measure": "1.0 fl oz",
674
+ "nutrients": [
675
+ {
676
+ "nutrient_id": "205",
677
+ "nutrient": "Carbohydrate, by difference",
678
+ "unit": "g",
679
+ "value": "0.71",
680
+ "gm": 2.4
681
+ }
682
+ ]
683
+ },
684
+ {
685
+ "ndbno": "14105",
686
+ "name": "Alcoholic Beverage, wine, table, red, Claret",
687
+ "weight": 29.4,
688
+ "measure": "1.0 fl oz",
689
+ "nutrients": [
690
+ {
691
+ "nutrient_id": "205",
692
+ "nutrient": "Carbohydrate, by difference",
693
+ "unit": "g",
694
+ "value": "0.88",
695
+ "gm": 3.01
696
+ }
697
+ ]
698
+ },
699
+ {
700
+ "ndbno": "14158",
701
+ "name": "Alcoholic Beverage, wine, table, red, Gamay",
702
+ "weight": 29.4,
703
+ "measure": "1.0 fl oz",
704
+ "nutrients": [
705
+ {
706
+ "nutrient_id": "205",
707
+ "nutrient": "Carbohydrate, by difference",
708
+ "unit": "g",
709
+ "value": "0.70",
710
+ "gm": 2.38
711
+ }
712
+ ]
713
+ },
714
+ {
715
+ "ndbno": "14107",
716
+ "name": "Alcoholic Beverage, wine, table, red, Lemberger",
717
+ "weight": 29.4,
718
+ "measure": "1.0 fl oz",
719
+ "nutrients": [
720
+ {
721
+ "nutrient_id": "205",
722
+ "nutrient": "Carbohydrate, by difference",
723
+ "unit": "g",
724
+ "value": "0.72",
725
+ "gm": 2.46
726
+ }
727
+ ]
728
+ },
729
+ {
730
+ "ndbno": "14602",
731
+ "name": "Alcoholic Beverage, wine, table, red, Merlot",
732
+ "weight": 29.4,
733
+ "measure": "1.0 fl oz",
734
+ "nutrients": [
735
+ {
736
+ "nutrient_id": "205",
737
+ "nutrient": "Carbohydrate, by difference",
738
+ "unit": "g",
739
+ "value": "0.74",
740
+ "gm": 2.51
741
+ }
742
+ ]
743
+ },
744
+ {
745
+ "ndbno": "14159",
746
+ "name": "Alcoholic Beverage, wine, table, red, Mouvedre",
747
+ "weight": 29.4,
748
+ "measure": "1.0 fl oz",
749
+ "nutrients": [
750
+ {
751
+ "nutrient_id": "205",
752
+ "nutrient": "Carbohydrate, by difference",
753
+ "unit": "g",
754
+ "value": "0.78",
755
+ "gm": 2.64
756
+ }
757
+ ]
758
+ },
759
+ {
760
+ "ndbno": "14103",
761
+ "name": "Alcoholic Beverage, wine, table, red, Petite Sirah",
762
+ "weight": 29.5,
763
+ "measure": "1.0 fl oz",
764
+ "nutrients": [
765
+ {
766
+ "nutrient_id": "205",
767
+ "nutrient": "Carbohydrate, by difference",
768
+ "unit": "g",
769
+ "value": "0.79",
770
+ "gm": 2.68
771
+ }
772
+ ]
773
+ },
774
+ {
775
+ "ndbno": "14099",
776
+ "name": "Alcoholic Beverage, wine, table, red, Pinot Noir",
777
+ "weight": 29.4,
778
+ "measure": "1.0 fl oz",
779
+ "nutrients": [
780
+ {
781
+ "nutrient_id": "205",
782
+ "nutrient": "Carbohydrate, by difference",
783
+ "unit": "g",
784
+ "value": "0.68",
785
+ "gm": 2.31
786
+ }
787
+ ]
788
+ },
789
+ {
790
+ "ndbno": "14108",
791
+ "name": "Alcoholic Beverage, wine, table, red, Sangiovese",
792
+ "weight": 29.4,
793
+ "measure": "1.0 fl oz",
794
+ "nutrients": [
795
+ {
796
+ "nutrient_id": "205",
797
+ "nutrient": "Carbohydrate, by difference",
798
+ "unit": "g",
799
+ "value": "0.77",
800
+ "gm": 2.62
801
+ }
802
+ ]
803
+ },
804
+ {
805
+ "ndbno": "14100",
806
+ "name": "Alcoholic Beverage, wine, table, red, Syrah",
807
+ "weight": 29.4,
808
+ "measure": "1.0 fl oz",
809
+ "nutrients": [
810
+ {
811
+ "nutrient_id": "205",
812
+ "nutrient": "Carbohydrate, by difference",
813
+ "unit": "g",
814
+ "value": "0.76",
815
+ "gm": 2.58
816
+ }
817
+ ]
818
+ }
819
+ ]
820
+ }
821
+ }
822
+ http_version:
823
+ recorded_at: Sun, 27 Sep 2015 01:09:26 GMT
824
+ recorded_with: VCR 2.9.3