Class: Google::Apis::AnalyticsreportingV4::EcommerceData
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticsreportingV4::EcommerceData
- 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
-
#action_type ⇒ String
Action associated with this e-commerce action.
-
#ecommerce_type ⇒ String
The type of this e-commerce activity.
-
#products ⇒ Array<Google::Apis::AnalyticsreportingV4::ProductData>
Details of the products in this transaction.
-
#transaction ⇒ Google::Apis::AnalyticsreportingV4::TransactionData
Represents details collected when the visitor performs a transaction on the page.
Instance Method Summary collapse
-
#initialize(**args) ⇒ EcommerceData
constructor
A new instance of EcommerceData.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ EcommerceData
Returns a new instance of EcommerceData.
553 554 555 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 553 def initialize(**args) update!(**args) end |
Instance Attribute Details
#action_type ⇒ String
Action associated with this e-commerce action.
Corresponds to the JSON property actionType
535 536 537 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 535 def action_type @action_type end |
#ecommerce_type ⇒ String
The type of this e-commerce activity.
Corresponds to the JSON property ecommerceType
540 541 542 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 540 def ecommerce_type @ecommerce_type end |
#products ⇒ Array<Google::Apis::AnalyticsreportingV4::ProductData>
Details of the products in this transaction.
Corresponds to the JSON property products
545 546 547 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 545 def products @products end |
#transaction ⇒ Google::Apis::AnalyticsreportingV4::TransactionData
Represents details collected when the visitor performs a transaction on the
page.
Corresponds to the JSON property transaction
551 552 553 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 551 def transaction @transaction end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
558 559 560 561 562 563 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 558 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 |