Class: Google::Shopping::Type::Weight
- Inherits:
-
Object
- Object
- Google::Shopping::Type::Weight
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/shopping/type/types.rb
Overview
The weight represented as the value in string and the unit.
Defined Under Namespace
Modules: WeightUnit
Instance Attribute Summary collapse
-
#amount_micros ⇒ ::Integer
Required.
-
#unit ⇒ ::Google::Shopping::Type::Weight::WeightUnit
Required.
Instance Attribute Details
#amount_micros ⇒ ::Integer
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'proto_docs/google/shopping/type/types.rb', line 35 class Weight include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The weight unit. module WeightUnit # unit unspecified WEIGHT_UNIT_UNSPECIFIED = 0 # lb unit. POUND = 1 # kg unit. KILOGRAM = 2 end end |
#unit ⇒ ::Google::Shopping::Type::Weight::WeightUnit
35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 |
# File 'proto_docs/google/shopping/type/types.rb', line 35 class Weight include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # The weight unit. module WeightUnit # unit unspecified WEIGHT_UNIT_UNSPECIFIED = 0 # lb unit. POUND = 1 # kg unit. KILOGRAM = 2 end end |