Class: Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1alpha::GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1alpha/classes.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb,
lib/google/apis/analyticsadmin_v1alpha/representations.rb
Overview
Defines a default value/currency for a key event.
Instance Attribute Summary collapse
-
#currency_code ⇒ String
Required.
-
#numeric_value ⇒ Float
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
constructor
A new instance of GoogleAnalyticsAdminV1alphaKeyEventDefaultValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1alphaKeyEventDefaultValue
Returns a new instance of GoogleAnalyticsAdminV1alphaKeyEventDefaultValue.
3883 3884 3885 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3883 def initialize(**args) update!(**args) end |
Instance Attribute Details
#currency_code ⇒ String
Required. When an occurrence of this Key Event (specified by event_name) has
no set currency this currency will be applied as the default. Must be in ISO
4217 currency code format. See https://en.wikipedia.org/wiki/ISO_4217 for more
information.
Corresponds to the JSON property currencyCode
3874 3875 3876 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3874 def currency_code @currency_code end |
#numeric_value ⇒ Float
Required. This will be used to populate the "value" parameter for all
occurrences of this Key Event (specified by event_name) where that parameter
is unset.
Corresponds to the JSON property numericValue
3881 3882 3883 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3881 def numeric_value @numeric_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
3888 3889 3890 3891 |
# File 'lib/google/apis/analyticsadmin_v1alpha/classes.rb', line 3888 def update!(**args) @currency_code = args[:currency_code] if args.key?(:currency_code) @numeric_value = args[:numeric_value] if args.key?(:numeric_value) end |