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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ EcommerceData

Returns a new instance of EcommerceData



550
551
552
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 550

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)


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

def action_type
  @action_type
end

#ecommerce_typeString

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

Returns:

  • (String)


537
538
539
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 537

def ecommerce_type
  @ecommerce_type
end

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

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



542
543
544
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 542

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



548
549
550
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 548

def transaction
  @transaction
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



555
556
557
558
559
560
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 555

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