Class: Google::Apis::ContentV2_1::OrderOrderAnnotation

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ OrderOrderAnnotation

Returns a new instance of OrderOrderAnnotation.



6126
6127
6128
# File 'lib/google/apis/content_v2_1/classes.rb', line 6126

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

Instance Attribute Details

#keyString

Key for additional google provided (as key-value pairs) annotation. Corresponds to the JSON property key

Returns:

  • (String)


6119
6120
6121
# File 'lib/google/apis/content_v2_1/classes.rb', line 6119

def key
  @key
end

#valueString

Value for additional google provided (as key-value pairs) annotation. Corresponds to the JSON property value

Returns:

  • (String)


6124
6125
6126
# File 'lib/google/apis/content_v2_1/classes.rb', line 6124

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6131
6132
6133
6134
# File 'lib/google/apis/content_v2_1/classes.rb', line 6131

def update!(**args)
  @key = args[:key] if args.key?(:key)
  @value = args[:value] if args.key?(:value)
end