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
550 551 552 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 550 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
532 533 534 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 532 def action_type @action_type end |
#ecommerce_type ⇒ String
The type of this e-commerce activity.
Corresponds to the JSON property ecommerceType
537 538 539 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 537 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
542 543 544 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 542 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
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 |