samples/cli/lib/samples/analytics.rb in google-api-client-0.13.0 vs samples/cli/lib/samples/analytics.rb in google-api-client-0.13.1

- old
+ new

@@ -32,11 +32,11 @@ # 20151208 2 2 1 50.0 0.0 0.0 # class Analytics < BaseCli Analytics = Google::Apis::AnalyticsV3 - desc 'show_visits PROFILE_ID', 'Show visists for the given analytics profile ID' + desc 'show_visits PROFILE_ID', 'Show visits for the given analytics profile ID' method_option :start, type: :string, required: true method_option :end, type: :string, required: true def show_visits(profile_id) analytics = Analytics::AnalyticsService.new analytics.authorization = user_credentials_for(Analytics::AUTH_ANALYTICS) @@ -56,10 +56,10 @@ data.push(result.column_headers.map { |h| h.name }) data.push(*result.rows) print_table(data) end - desc 'show_realtime_visits PROFILE_ID', 'Show realtime visists for the given analytics profile ID' + desc 'show_realtime_visits PROFILE_ID', 'Show realtime visits for the given analytics profile ID' def show_realtime_visits(profile_id) analytics = Analytics::AnalyticsService.new analytics.authorization = user_credentials_for(Analytics::AUTH_ANALYTICS) dimensions = %w(rt:medium rt:pagePath)