Class: Google::Apis::ContentV2_1::CloudExportAdditionalProperties
- Inherits:
-
Object
- Object
- Google::Apis::ContentV2_1::CloudExportAdditionalProperties
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/content_v2_1/classes.rb,
lib/google/apis/content_v2_1/representations.rb,
lib/google/apis/content_v2_1/representations.rb
Overview
Product property for the Cloud Retail API. For example, properties for a TV product could be "Screen-Resolution" or "Screen-Size".
Instance Attribute Summary collapse
-
#bool_value ⇒ Boolean
(also: #bool_value?)
Boolean value of the given property.
-
#float_value ⇒ Array<Float>
Float values of the given property.
-
#int_value ⇒ Array<Fixnum>
Integer values of the given property.
-
#max_value ⇒ Float
Maximum float value of the given property.
-
#min_value ⇒ Float
Minimum float value of the given property.
-
#property_name ⇒ String
Name of the given property.
-
#text_value ⇒ Array<String>
Text value of the given property.
-
#unit_code ⇒ String
Unit of the given property.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CloudExportAdditionalProperties
constructor
A new instance of CloudExportAdditionalProperties.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CloudExportAdditionalProperties
Returns a new instance of CloudExportAdditionalProperties.
2975 2976 2977 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2975 def initialize(**args) update!(**args) end |
Instance Attribute Details
#bool_value ⇒ Boolean Also known as: bool_value?
Boolean value of the given property. For example for a TV product, "True" or "
False" if the screen is UHD.
Corresponds to the JSON property boolValue
2928 2929 2930 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2928 def bool_value @bool_value end |
#float_value ⇒ Array<Float>
Float values of the given property. For example for a TV product 1.2345.
Maximum number of specified values for this field is 400. Values are stored in
an arbitrary but consistent order.
Corresponds to the JSON property floatValue
2936 2937 2938 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2936 def float_value @float_value end |
#int_value ⇒ Array<Fixnum>
Integer values of the given property. For example, 1080 for a screen
resolution of a TV product. Maximum number of specified values for this field
is 400. Values are stored in an arbitrary but consistent order.
Corresponds to the JSON property intValue
2943 2944 2945 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2943 def int_value @int_value end |
#max_value ⇒ Float
Maximum float value of the given property. For example for a TV product 100.00.
Corresponds to the JSON property maxValue
2948 2949 2950 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2948 def max_value @max_value end |
#min_value ⇒ Float
Minimum float value of the given property. For example for a TV product 1.00.
Corresponds to the JSON property minValue
2953 2954 2955 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2953 def min_value @min_value end |
#property_name ⇒ String
Name of the given property. For example, "Screen-Resolution" for a TV product.
Maximum string size is 256 characters.
Corresponds to the JSON property propertyName
2959 2960 2961 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2959 def property_name @property_name end |
#text_value ⇒ Array<String>
Text value of the given property. For example, "8K(UHD)" could be a text value
for a TV product. Maximum number of specified values for this field is 400.
Values are stored in an arbitrary but consistent order. Maximum string size is
256 characters.
Corresponds to the JSON property textValue
2967 2968 2969 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2967 def text_value @text_value end |
#unit_code ⇒ String
Unit of the given property. For example, "Pixels" for a TV product. Maximum
string size is 256 bytes.
Corresponds to the JSON property unitCode
2973 2974 2975 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2973 def unit_code @unit_code end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 |
# File 'lib/google/apis/content_v2_1/classes.rb', line 2980 def update!(**args) @bool_value = args[:bool_value] if args.key?(:bool_value) @float_value = args[:float_value] if args.key?(:float_value) @int_value = args[:int_value] if args.key?(:int_value) @max_value = args[:max_value] if args.key?(:max_value) @min_value = args[:min_value] if args.key?(:min_value) @property_name = args[:property_name] if args.key?(:property_name) @text_value = args[:text_value] if args.key?(:text_value) @unit_code = args[:unit_code] if args.key?(:unit_code) end |