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.
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_type ⇒ String
Action associated with this e-commerce action.
Corresponds to the JSON property actionType
506 507 508 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 506 def action_type @action_type end |
#ecommerce_type ⇒ String
The type of this e-commerce activity.
Corresponds to the JSON property ecommerceType
511 512 513 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 511 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
516 517 518 |
# File 'generated/google/apis/analyticsreporting_v4/classes.rb', line 516 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
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 |