Class: Google::Apis::ManufacturersV1::Grocery

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Grocery

Returns a new instance of Grocery.



512
513
514
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 512

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#active_ingredientsString

Active ingredients. Corresponds to the JSON property activeIngredients

Returns:

  • (String)


470
471
472
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 470

def active_ingredients
  @active_ingredients
end

#alcohol_by_volumeFloat

Alcohol by volume. Corresponds to the JSON property alcoholByVolume

Returns:

  • (Float)


475
476
477
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 475

def alcohol_by_volume
  @alcohol_by_volume
end

#allergensString

Allergens. Corresponds to the JSON property allergens

Returns:

  • (String)


480
481
482
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 480

def allergens
  @allergens
end

#derived_nutrition_claimArray<String>

Derived nutrition claim. Corresponds to the JSON property derivedNutritionClaim

Returns:

  • (Array<String>)


485
486
487
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 485

def derived_nutrition_claim
  @derived_nutrition_claim
end

#directionsString

Directions. Corresponds to the JSON property directions

Returns:

  • (String)


490
491
492
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 490

def directions
  @directions
end

#indicationsString

Indications. Corresponds to the JSON property indications

Returns:

  • (String)


495
496
497
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 495

def indications
  @indications
end

#ingredientsString

Ingredients. Corresponds to the JSON property ingredients

Returns:

  • (String)


500
501
502
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 500

def ingredients
  @ingredients
end

#nutrition_claimArray<String>

Nutrition claim. Corresponds to the JSON property nutritionClaim

Returns:

  • (Array<String>)


505
506
507
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 505

def nutrition_claim
  @nutrition_claim
end

#storage_instructionsString

Storage instructions. Corresponds to the JSON property storageInstructions

Returns:

  • (String)


510
511
512
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 510

def storage_instructions
  @storage_instructions
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



517
518
519
520
521
522
523
524
525
526
527
# File 'lib/google/apis/manufacturers_v1/classes.rb', line 517

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