Class: Google::Apis::UrlshortenerV1::StringCount
- Inherits:
-
Object
- Object
- Google::Apis::UrlshortenerV1::StringCount
- 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
-
#count ⇒ Fixnum
Number of clicks for this top entry, e.g.
-
#id ⇒ String
Label assigned to this top entry, e.g.
Instance Method Summary collapse
-
#initialize(**args) ⇒ StringCount
constructor
A new instance of StringCount.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#count ⇒ Fixnum
Number of clicks for this top entry, e.g. for this particular country or
browser.
Corresponds to the JSON property count
129 130 131 |
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 129 def count @count end |
#id ⇒ String
Label assigned to this top entry, e.g. "US" or "Chrome".
Corresponds to the JSON property id
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 |