Class: Google::Apis::AnalyticsadminV1beta::GoogleAnalyticsAdminV1betaKeyEventDefaultValue

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

Instance Method Summary collapse

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_codeString

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

Returns:

  • (String)


1530
1531
1532
# File 'lib/google/apis/analyticsadmin_v1beta/classes.rb', line 1530

def currency_code
  @currency_code
end

#numeric_valueFloat

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

Returns:

  • (Float)


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