class Staccato::Measurement::Product

Measurement class for products in a transaction or other action

Constants

FIELDS

Product measurement options fields

Public Class Methods

lookup_key() click to toggle source

lookup key for use in Hit#add_measurement @return [Symbol]

# File lib/staccato/measurement/product.rb, line 7
def self.lookup_key
  :product
end

Public Instance Methods

custom_fields_allowed?() click to toggle source

product allow custom dimensions and metrics

# File lib/staccato/measurement/product.rb, line 18
def custom_fields_allowed?
  true
end
prefix() click to toggle source

product prefix @return [String]

# File lib/staccato/measurement/product.rb, line 13
def prefix
  'pr'+index.to_s
end