class GAShikomi::Command
Attributes
api[R]
config[R]
Public Class Methods
new(*args)
click to toggle source
Calls superclass method
# File lib/ga_shikomi/command.rb, line 11 def initialize(*args) super if args.last[:current_command].name != 'help' store = (!options.nil? && options['credential-store']) || File.join(Dir.pwd, '.ga-cli-credential') @api = Api.new(store) @config = Config.new(options['config_file']).config if options['config_file'] end end
Public Instance Methods
accounts()
click to toggle source
# File lib/ga_shikomi/command.rb, line 32 def accounts Renderer.new(Subcommand::Accounts.new(api).list, options).render_accounts end
dimensions()
click to toggle source
# File lib/ga_shikomi/command.rb, line 78 def dimensions Renderer.new(Subcommand::Metadata.new(api, options).dimensions, options).render_metadata end
filters()
click to toggle source
# File lib/ga_shikomi/command.rb, line 58 def filters Renderer.new(Subcommand::Filters.new(api, options).list, options).render_filters end
ga()
click to toggle source
# File lib/ga_shikomi/command.rb, line 27 def ga Renderer.new(Subcommand::Ga.new(api, options).get(config), options).render_ga end
goals()
click to toggle source
# File lib/ga_shikomi/command.rb, line 66 def goals Renderer.new(Subcommand::Goals.new(api, options).list, options).render_goals end
metrics()
click to toggle source
# File lib/ga_shikomi/command.rb, line 72 def metrics Renderer.new(Subcommand::Metadata.new(api, options).metrics, options).render_metadata end
profiles()
click to toggle source
# File lib/ga_shikomi/command.rb, line 52 def profiles Renderer.new(Subcommand::Profiles.new(api, options).list, options).render_profiles end
properties()
click to toggle source
# File lib/ga_shikomi/command.rb, line 38 def properties Renderer.new(Subcommand::Webproperties.new(api, options).list, options).render_properties end
property()
click to toggle source
# File lib/ga_shikomi/command.rb, line 45 def property Renderer.new(Subcommand::Webproperties.new(api, options).get, options).render_properties end
segments()
click to toggle source
# File lib/ga_shikomi/command.rb, line 83 def segments Renderer.new(Subcommand::Segments.new(api).list, options).render_segments end