Class: Google::Apis::AnalyticsreportingV4::EcommerceData

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

Overview

E-commerce details associated with the user activity.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EcommerceData

Returns a new instance of EcommerceData.



524
525
526
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 524

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

Instance Attribute Details

#action_typeString

Action associated with this e-commerce action. Corresponds to the JSON property actionType

Returns:

  • (String)


506
507
508
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 506

def action_type
  @action_type
end

#ecommerce_typeString

The type of this e-commerce activity. Corresponds to the JSON property ecommerceType

Returns:

  • (String)


511
512
513
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 511

def ecommerce_type
  @ecommerce_type
end

#productsArray<Google::Apis::AnalyticsreportingV4::ProductData>

Details of the products in this transaction. Corresponds to the JSON property products



516
517
518
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 516

def products
  @products
end

#transactionGoogle::Apis::AnalyticsreportingV4::TransactionData

Represents details collected when the visitor performs a transaction on the page. Corresponds to the JSON property transaction



522
523
524
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 522

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



529
530
531
532
533
534
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 529

def update!(**args)
  @action_type = args[:action_type] if args.key?(:action_type)
  @ecommerce_type = args[:ecommerce_type] if args.key?(:ecommerce_type)
  @products = args[:products] if args.key?(:products)
  @transaction = args[:transaction] if args.key?(:transaction)
end