class Google::Apis::UrlshortenerV1::AnalyticsSummary

Attributes

all_time[RW]

Click analytics over all time. Corresponds to the JSON property `allTime` @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]

day[RW]

Click analytics over the last day. Corresponds to the JSON property `day` @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]

month[RW]

Click analytics over the last month. Corresponds to the JSON property `month` @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]

two_hours[RW]

Click analytics over the last two hours. Corresponds to the JSON property `twoHours` @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]

week[RW]

Click analytics over the last week. Corresponds to the JSON property `week` @return [Google::Apis::UrlshortenerV1::AnalyticsSnapshot]

Public Class Methods

new(**args) click to toggle source
# File generated/google/apis/urlshortener_v1/classes.rb, line 107
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File generated/google/apis/urlshortener_v1/classes.rb, line 112
def update!(**args)
  @all_time = args[:all_time] if args.key?(:all_time)
  @day = args[:day] if args.key?(:day)
  @month = args[:month] if args.key?(:month)
  @two_hours = args[:two_hours] if args.key?(:two_hours)
  @week = args[:week] if args.key?(:week)
end