Method: Legato::Model#metrics

Defined in:
lib/legato/model.rb

#metrics(*fields) ⇒ ListParameter

Adds metrics to the class for retrieval from GA

Parameters:

  • *fields (Symbol)

    the names of the fields to retrieve

Returns:



11
12
13
14
# File 'lib/legato/model.rb', line 11

def metrics(*fields)
  @metrics ||= ListParameter.new(:metrics, [])
  @metrics << fields
end