Class: Google::Apis::ManufacturersV1::Nutrition
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Nutrition
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/manufacturers_v1/classes.rb,
lib/google/apis/manufacturers_v1/representations.rb,
lib/google/apis/manufacturers_v1/representations.rb
Instance Attribute Summary collapse
-
#added_sugars ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#added_sugars_daily_percentage ⇒ Float
Added sugars daily percentage.
-
#calcium ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#calcium_daily_percentage ⇒ Float
Calcium daily percentage.
-
#cholesterol ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#cholesterol_daily_percentage ⇒ Float
Cholesterol daily percentage.
-
#dietary_fiber ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#dietary_fiber_daily_percentage ⇒ Float
Dietary fiber daily percentage.
-
#energy ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#energy_from_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#folate_daily_percentage ⇒ Float
Folate daily percentage.
-
#folate_folic_acid ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#folate_mcg_dfe ⇒ Float
Folate mcg DFE.
-
#iron ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#iron_daily_percentage ⇒ Float
Iron daily percentage.
-
#monounsaturated_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#nutrition_fact_measure ⇒ String
Nutrition fact measure.
-
#polyols ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#polyunsaturated_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#potassium ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#potassium_daily_percentage ⇒ Float
Potassium daily percentage.
-
#prepared_size_description ⇒ String
Prepared size description.
-
#protein ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#protein_daily_percentage ⇒ Float
Protein daily percentage.
-
#saturated_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#saturated_fat_daily_percentage ⇒ Float
Saturated fat daily percentage.
-
#serving_size_description ⇒ String
Food Serving Size.
-
#serving_size_measure ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#servings_per_container ⇒ String
Servings per container.
-
#sodium ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#sodium_daily_percentage ⇒ Float
Sodium daily percentage.
-
#starch ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#total_carbohydrate ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#total_carbohydrate_daily_percentage ⇒ Float
Total carbohydrate daily percentage.
-
#total_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#total_fat_daily_percentage ⇒ Float
Total fat daily percentage.
-
#total_sugars ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#total_sugars_daily_percentage ⇒ Float
Total sugars daily percentage.
-
#trans_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#trans_fat_daily_percentage ⇒ Float
Trans fat daily percentage.
-
#vitamin_d ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
-
#vitamin_d_daily_percentage ⇒ Float
Vitamin D daily percentage.
-
#voluntary_nutrition_fact ⇒ Array<Google::Apis::ManufacturersV1::VoluntaryNutritionFact>
Voluntary nutrition fact.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Nutrition
constructor
A new instance of Nutrition.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Nutrition
Returns a new instance of Nutrition.
1032 1033 1034 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1032 def initialize(**args) update!(**args) end |
Instance Attribute Details
#added_sugars ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property addedSugars
820 821 822 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 820 def added_sugars @added_sugars end |
#added_sugars_daily_percentage ⇒ Float
Added sugars daily percentage.
Corresponds to the JSON property addedSugarsDailyPercentage
825 826 827 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 825 def added_sugars_daily_percentage @added_sugars_daily_percentage end |
#calcium ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property calcium
830 831 832 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 830 def calcium @calcium end |
#calcium_daily_percentage ⇒ Float
Calcium daily percentage.
Corresponds to the JSON property calciumDailyPercentage
835 836 837 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 835 def calcium_daily_percentage @calcium_daily_percentage end |
#cholesterol ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property cholesterol
840 841 842 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 840 def cholesterol @cholesterol end |
#cholesterol_daily_percentage ⇒ Float
Cholesterol daily percentage.
Corresponds to the JSON property cholesterolDailyPercentage
845 846 847 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 845 def cholesterol_daily_percentage @cholesterol_daily_percentage end |
#dietary_fiber ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property dietaryFiber
850 851 852 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 850 def dietary_fiber @dietary_fiber end |
#dietary_fiber_daily_percentage ⇒ Float
Dietary fiber daily percentage.
Corresponds to the JSON property dietaryFiberDailyPercentage
855 856 857 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 855 def dietary_fiber_daily_percentage @dietary_fiber_daily_percentage end |
#energy ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property energy
860 861 862 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 860 def energy @energy end |
#energy_from_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property energyFromFat
865 866 867 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 865 def energy_from_fat @energy_from_fat end |
#folate_daily_percentage ⇒ Float
Folate daily percentage.
Corresponds to the JSON property folateDailyPercentage
870 871 872 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 870 def folate_daily_percentage @folate_daily_percentage end |
#folate_folic_acid ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property folateFolicAcid
875 876 877 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 875 def folate_folic_acid @folate_folic_acid end |
#folate_mcg_dfe ⇒ Float
Folate mcg DFE.
Corresponds to the JSON property folateMcgDfe
880 881 882 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 880 def folate_mcg_dfe @folate_mcg_dfe end |
#iron ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property iron
885 886 887 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 885 def iron @iron end |
#iron_daily_percentage ⇒ Float
Iron daily percentage.
Corresponds to the JSON property ironDailyPercentage
890 891 892 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 890 def iron_daily_percentage @iron_daily_percentage end |
#monounsaturated_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property monounsaturatedFat
895 896 897 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 895 def monounsaturated_fat @monounsaturated_fat end |
#nutrition_fact_measure ⇒ String
Nutrition fact measure.
Corresponds to the JSON property nutritionFactMeasure
900 901 902 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 900 def nutrition_fact_measure @nutrition_fact_measure end |
#polyols ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property polyols
905 906 907 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 905 def polyols @polyols end |
#polyunsaturated_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property polyunsaturatedFat
910 911 912 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 910 def polyunsaturated_fat @polyunsaturated_fat end |
#potassium ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property potassium
915 916 917 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 915 def potassium @potassium end |
#potassium_daily_percentage ⇒ Float
Potassium daily percentage.
Corresponds to the JSON property potassiumDailyPercentage
920 921 922 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 920 def potassium_daily_percentage @potassium_daily_percentage end |
#prepared_size_description ⇒ String
Prepared size description.
Corresponds to the JSON property preparedSizeDescription
925 926 927 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 925 def prepared_size_description @prepared_size_description end |
#protein ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property protein
930 931 932 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 930 def protein @protein end |
#protein_daily_percentage ⇒ Float
Protein daily percentage.
Corresponds to the JSON property proteinDailyPercentage
935 936 937 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 935 def protein_daily_percentage @protein_daily_percentage end |
#saturated_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property saturatedFat
940 941 942 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 940 def saturated_fat @saturated_fat end |
#saturated_fat_daily_percentage ⇒ Float
Saturated fat daily percentage.
Corresponds to the JSON property saturatedFatDailyPercentage
945 946 947 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 945 def saturated_fat_daily_percentage @saturated_fat_daily_percentage end |
#serving_size_description ⇒ String
Food Serving Size. Serving size description.
Corresponds to the JSON property servingSizeDescription
950 951 952 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 950 def serving_size_description @serving_size_description end |
#serving_size_measure ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property servingSizeMeasure
955 956 957 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 955 def serving_size_measure @serving_size_measure end |
#servings_per_container ⇒ String
Servings per container.
Corresponds to the JSON property servingsPerContainer
960 961 962 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 960 def servings_per_container @servings_per_container end |
#sodium ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property sodium
965 966 967 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 965 def sodium @sodium end |
#sodium_daily_percentage ⇒ Float
Sodium daily percentage.
Corresponds to the JSON property sodiumDailyPercentage
970 971 972 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 970 def sodium_daily_percentage @sodium_daily_percentage end |
#starch ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property starch
975 976 977 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 975 def starch @starch end |
#total_carbohydrate ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property totalCarbohydrate
980 981 982 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 980 def total_carbohydrate @total_carbohydrate end |
#total_carbohydrate_daily_percentage ⇒ Float
Total carbohydrate daily percentage.
Corresponds to the JSON property totalCarbohydrateDailyPercentage
985 986 987 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 985 def total_carbohydrate_daily_percentage @total_carbohydrate_daily_percentage end |
#total_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property totalFat
990 991 992 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 990 def total_fat @total_fat end |
#total_fat_daily_percentage ⇒ Float
Total fat daily percentage.
Corresponds to the JSON property totalFatDailyPercentage
995 996 997 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 995 def total_fat_daily_percentage @total_fat_daily_percentage end |
#total_sugars ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property totalSugars
1000 1001 1002 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1000 def total_sugars @total_sugars end |
#total_sugars_daily_percentage ⇒ Float
Total sugars daily percentage.
Corresponds to the JSON property totalSugarsDailyPercentage
1005 1006 1007 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1005 def total_sugars_daily_percentage @total_sugars_daily_percentage end |
#trans_fat ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property transFat
1010 1011 1012 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1010 def trans_fat @trans_fat end |
#trans_fat_daily_percentage ⇒ Float
Trans fat daily percentage.
Corresponds to the JSON property transFatDailyPercentage
1015 1016 1017 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1015 def trans_fat_daily_percentage @trans_fat_daily_percentage end |
#vitamin_d ⇒ Google::Apis::ManufacturersV1::FloatUnit
Combination of float amount and unit.
Corresponds to the JSON property vitaminD
1020 1021 1022 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1020 def vitamin_d @vitamin_d end |
#vitamin_d_daily_percentage ⇒ Float
Vitamin D daily percentage.
Corresponds to the JSON property vitaminDDailyPercentage
1025 1026 1027 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1025 def vitamin_d_daily_percentage @vitamin_d_daily_percentage end |
#voluntary_nutrition_fact ⇒ Array<Google::Apis::ManufacturersV1::VoluntaryNutritionFact>
Voluntary nutrition fact.
Corresponds to the JSON property voluntaryNutritionFact
1030 1031 1032 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1030 def voluntary_nutrition_fact @voluntary_nutrition_fact end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 1037 def update!(**args) @added_sugars = args[:added_sugars] if args.key?(:added_sugars) @added_sugars_daily_percentage = args[:added_sugars_daily_percentage] if args.key?(:added_sugars_daily_percentage) @calcium = args[:calcium] if args.key?(:calcium) @calcium_daily_percentage = args[:calcium_daily_percentage] if args.key?(:calcium_daily_percentage) @cholesterol = args[:cholesterol] if args.key?(:cholesterol) @cholesterol_daily_percentage = args[:cholesterol_daily_percentage] if args.key?(:cholesterol_daily_percentage) @dietary_fiber = args[:dietary_fiber] if args.key?(:dietary_fiber) @dietary_fiber_daily_percentage = args[:dietary_fiber_daily_percentage] if args.key?(:dietary_fiber_daily_percentage) @energy = args[:energy] if args.key?(:energy) @energy_from_fat = args[:energy_from_fat] if args.key?(:energy_from_fat) @folate_daily_percentage = args[:folate_daily_percentage] if args.key?(:folate_daily_percentage) @folate_folic_acid = args[:folate_folic_acid] if args.key?(:folate_folic_acid) @folate_mcg_dfe = args[:folate_mcg_dfe] if args.key?(:folate_mcg_dfe) @iron = args[:iron] if args.key?(:iron) @iron_daily_percentage = args[:iron_daily_percentage] if args.key?(:iron_daily_percentage) @monounsaturated_fat = args[:monounsaturated_fat] if args.key?(:monounsaturated_fat) @nutrition_fact_measure = args[:nutrition_fact_measure] if args.key?(:nutrition_fact_measure) @polyols = args[:polyols] if args.key?(:polyols) @polyunsaturated_fat = args[:polyunsaturated_fat] if args.key?(:polyunsaturated_fat) @potassium = args[:potassium] if args.key?(:potassium) @potassium_daily_percentage = args[:potassium_daily_percentage] if args.key?(:potassium_daily_percentage) @prepared_size_description = args[:prepared_size_description] if args.key?(:prepared_size_description) @protein = args[:protein] if args.key?(:protein) @protein_daily_percentage = args[:protein_daily_percentage] if args.key?(:protein_daily_percentage) @saturated_fat = args[:saturated_fat] if args.key?(:saturated_fat) @saturated_fat_daily_percentage = args[:saturated_fat_daily_percentage] if args.key?(:saturated_fat_daily_percentage) @serving_size_description = args[:serving_size_description] if args.key?(:serving_size_description) @serving_size_measure = args[:serving_size_measure] if args.key?(:serving_size_measure) @servings_per_container = args[:servings_per_container] if args.key?(:servings_per_container) @sodium = args[:sodium] if args.key?(:sodium) @sodium_daily_percentage = args[:sodium_daily_percentage] if args.key?(:sodium_daily_percentage) @starch = args[:starch] if args.key?(:starch) @total_carbohydrate = args[:total_carbohydrate] if args.key?(:total_carbohydrate) @total_carbohydrate_daily_percentage = args[:total_carbohydrate_daily_percentage] if args.key?(:total_carbohydrate_daily_percentage) @total_fat = args[:total_fat] if args.key?(:total_fat) @total_fat_daily_percentage = args[:total_fat_daily_percentage] if args.key?(:total_fat_daily_percentage) @total_sugars = args[:total_sugars] if args.key?(:total_sugars) @total_sugars_daily_percentage = args[:total_sugars_daily_percentage] if args.key?(:total_sugars_daily_percentage) @trans_fat = args[:trans_fat] if args.key?(:trans_fat) @trans_fat_daily_percentage = args[:trans_fat_daily_percentage] if args.key?(:trans_fat_daily_percentage) @vitamin_d = args[:vitamin_d] if args.key?(:vitamin_d) @vitamin_d_daily_percentage = args[:vitamin_d_daily_percentage] if args.key?(:vitamin_d_daily_percentage) @voluntary_nutrition_fact = args[:voluntary_nutrition_fact] if args.key?(:voluntary_nutrition_fact) end |