Class: Google::Apis::ManufacturersV1::Grocery
- Inherits:
-
Object
- Object
- Google::Apis::ManufacturersV1::Grocery
- 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
-
#active_ingredients ⇒ String
Active ingredients.
-
#alcohol_by_volume ⇒ Float
Alcohol by volume.
-
#allergens ⇒ String
Allergens.
-
#derived_nutrition_claim ⇒ Array<String>
Derived nutrition claim.
-
#directions ⇒ String
Directions.
-
#indications ⇒ String
Indications.
-
#ingredients ⇒ String
Ingredients.
-
#nutrition_claim ⇒ Array<String>
Nutrition claim.
-
#storage_instructions ⇒ String
Storage instructions.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Grocery
constructor
A new instance of Grocery.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Grocery
Returns a new instance of Grocery.
665 666 667 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 665 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active_ingredients ⇒ String
Active ingredients.
Corresponds to the JSON property activeIngredients
623 624 625 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 623 def active_ingredients @active_ingredients end |
#alcohol_by_volume ⇒ Float
Alcohol by volume.
Corresponds to the JSON property alcoholByVolume
628 629 630 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 628 def alcohol_by_volume @alcohol_by_volume end |
#allergens ⇒ String
Allergens.
Corresponds to the JSON property allergens
633 634 635 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 633 def allergens @allergens end |
#derived_nutrition_claim ⇒ Array<String>
Derived nutrition claim.
Corresponds to the JSON property derivedNutritionClaim
638 639 640 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 638 def derived_nutrition_claim @derived_nutrition_claim end |
#directions ⇒ String
Directions.
Corresponds to the JSON property directions
643 644 645 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 643 def directions @directions end |
#indications ⇒ String
Indications.
Corresponds to the JSON property indications
648 649 650 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 648 def indications @indications end |
#ingredients ⇒ String
Ingredients.
Corresponds to the JSON property ingredients
653 654 655 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 653 def ingredients @ingredients end |
#nutrition_claim ⇒ Array<String>
Nutrition claim.
Corresponds to the JSON property nutritionClaim
658 659 660 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 658 def nutrition_claim @nutrition_claim end |
#storage_instructions ⇒ String
Storage instructions.
Corresponds to the JSON property storageInstructions
663 664 665 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 663 def storage_instructions @storage_instructions end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
670 671 672 673 674 675 676 677 678 679 680 |
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 670 def update!(**args) @active_ingredients = args[:active_ingredients] if args.key?(:active_ingredients) @alcohol_by_volume = args[:alcohol_by_volume] if args.key?(:alcohol_by_volume) @allergens = args[:allergens] if args.key?(:allergens) @derived_nutrition_claim = args[:derived_nutrition_claim] if args.key?(:derived_nutrition_claim) @directions = args[:directions] if args.key?(:directions) @indications = args[:indications] if args.key?(:indications) @ingredients = args[:ingredients] if args.key?(:ingredients) @nutrition_claim = args[:nutrition_claim] if args.key?(:nutrition_claim) @storage_instructions = args[:storage_instructions] if args.key?(:storage_instructions) end |