class Google::Apis::GameservicesV1::CustomField
Custom fields. These can be used to create a counter with arbitrary field/ value pairs. See: go/rpcsp-custom-fields.
Attributes
name[RW]
Name is the field name. Corresponds to the JSON property `name` @return [String]
value[RW]
Value is the field value. It is important that in contrast to the CounterOptions.field
, the value here is a constant that is not derived from the IAMContext. Corresponds to the JSON property `value` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/gameservices_v1/classes.rb, line 346 def initialize(**args) update!(**args) end
Public Instance Methods
update!(**args)
click to toggle source
Update properties of this object
# File lib/google/apis/gameservices_v1/classes.rb, line 351 def update!(**args) @name = args[:name] if args.key?(:name) @value = args[:value] if args.key?(:value) end