Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaKeyEventDefaultValue
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaKeyEventDefaultValue
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/analyticsadmin_v1beta/classes.rb,
lib/google/apis/analyticsadmin_v1beta/representations.rb,
lib/google/apis/analyticsadmin_v1beta/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) ⇒ GoogleAnalyticsAdminV1betaKeyEventDefaultValue
constructor
A new instance of GoogleAnalyticsAdminV1betaKeyEventDefaultValue.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleAnalyticsAdminV1betaKeyEventDefaultValue
Returns a new instance of GoogleAnalyticsAdminV1betaKeyEventDefaultValue.
1539 1540 1541 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1539 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
1530 1531 1532 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1530 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
1537 1538 1539 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1537 def numeric_value @numeric_value end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1544 1545 1546 1547 |
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1544 def update!(**args) @currency_code = args[:currency_code] if args.key?(:currency_code) @numeric_value = args[:numeric_value] if args.key?(:numeric_value) end |