Class: Google::Apis::FirebaseremoteconfigV1::RemoteConfigParameterValue

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/firebaseremoteconfig_v1/classes.rb,
generated/google/apis/firebaseremoteconfig_v1/representations.rb,
generated/google/apis/firebaseremoteconfig_v1/representations.rb

Overview

A RemoteConfigParameter's "value" (either the default value, or the value associated with a condition name) is either a string, or the "use_in_app_default" indicator (which means to leave out the parameter from the returned map that is the output of the parameter fetch). We represent the "use_in_app_default" as a bool, but (when using the boolean instead of the string) it should always be true.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ RemoteConfigParameterValue

Returns a new instance of RemoteConfigParameterValue



168
169
170
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 168

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

Instance Attribute Details

#use_in_app_defaultBoolean Also known as: use_in_app_default?

if true, omit the parameter from the map of fetched parameter values Corresponds to the JSON property useInAppDefault

Returns:

  • (Boolean)


160
161
162
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 160

def use_in_app_default
  @use_in_app_default
end

#valueString

the string to set the parameter to Corresponds to the JSON property value

Returns:

  • (String)


166
167
168
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 166

def value
  @value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



173
174
175
176
# File 'generated/google/apis/firebaseremoteconfig_v1/classes.rb', line 173

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