Class: Google::Apis::MerchantapiReviewsV1beta::CustomAttribute
- Inherits:
-
Object
- Object
- Google::Apis::MerchantapiReviewsV1beta::CustomAttribute
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/merchantapi_reviews_v1beta/classes.rb,
lib/google/apis/merchantapi_reviews_v1beta/representations.rb,
lib/google/apis/merchantapi_reviews_v1beta/representations.rb
Overview
A message that represents custom attributes. Exactly one of value
or
group_values
must not be empty.
Instance Attribute Summary collapse
-
#group_values ⇒ Array<Google::Apis::MerchantapiReviewsV1beta::CustomAttribute>
Subattributes within this attribute group.
-
#name ⇒ String
The name of the attribute.
-
#value ⇒ String
The value of the attribute.
Instance Method Summary collapse
-
#initialize(**args) ⇒ CustomAttribute
constructor
A new instance of CustomAttribute.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ CustomAttribute
Returns a new instance of CustomAttribute.
47 48 49 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 47 def initialize(**args) update!(**args) end |
Instance Attribute Details
#group_values ⇒ Array<Google::Apis::MerchantapiReviewsV1beta::CustomAttribute>
Subattributes within this attribute group. If group_values
is not empty,
value
must be empty.
Corresponds to the JSON property groupValues
34 35 36 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 34 def group_values @group_values end |
#name ⇒ String
The name of the attribute.
Corresponds to the JSON property name
39 40 41 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 39 def name @name end |
#value ⇒ String
The value of the attribute. If value
is not empty, group_values
must be
empty.
Corresponds to the JSON property value
45 46 47 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 45 def value @value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
52 53 54 55 56 |
# File 'lib/google/apis/merchantapi_reviews_v1beta/classes.rb', line 52 def update!(**args) @group_values = args[:group_values] if args.key?(:group_values) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end |