Class: GAShikomi::Subcommand::Goals

Inherits:
Base
  • Object
show all
Defined in:
lib/ga_shikomi/subcommand/goals.rb

Instance Attribute Summary

Attributes inherited from Base

#api, #options

Instance Method Summary collapse

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from GAShikomi::Subcommand::Base

Instance Method Details

#listObject



4
5
6
7
8
9
10
# File 'lib/ga_shikomi/subcommand/goals.rb', line 4

def list
  api.execute(
    api.analytics.management.goals.list,
    :accountId     => options['account_id'],
    :webPropertyId => options['property_id'],
    :profileId     => options['profile_id'])['items']
end