Class: Google::Apis::UrlshortenerV1::StringCount

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/urlshortener_v1/classes.rb,
generated/google/apis/urlshortener_v1/representations.rb,
generated/google/apis/urlshortener_v1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ StringCount

Returns a new instance of StringCount



136
137
138
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 136

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#countFixnum

Number of clicks for this top entry, e.g. for this particular country or browser. Corresponds to the JSON property count

Returns:

  • (Fixnum)


129
130
131
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 129

def count
  @count
end

#idString

Label assigned to this top entry, e.g. "US" or "Chrome". Corresponds to the JSON property id

Returns:

  • (String)


134
135
136
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 134

def id
  @id
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



141
142
143
144
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 141

def update!(**args)
  @count = args[:count] if args.key?(:count)
  @id = args[:id] if args.key?(:id)
end