Class: Google::Apis::UrlshortenerV1::UrlHistory

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) ⇒ UrlHistory

Returns a new instance of UrlHistory



231
232
233
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 231

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

Instance Attribute Details

#itemsArray<Google::Apis::UrlshortenerV1::Url>

A list of URL resources. Corresponds to the JSON property items



208
209
210
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 208

def items
  @items
end

#items_per_pageFixnum

Number of items returned with each full "page" of results. Note that the last page could have fewer items than the "itemsPerPage" value. Corresponds to the JSON property itemsPerPage

Returns:

  • (Fixnum)


214
215
216
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 214

def items_per_page
  @items_per_page
end

#kindString

The fixed string "urlshortener#urlHistory". Corresponds to the JSON property kind

Returns:

  • (String)


219
220
221
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 219

def kind
  @kind
end

#next_page_tokenString

A token to provide to get the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


224
225
226
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 224

def next_page_token
  @next_page_token
end

#total_itemsFixnum

Total number of short URLs associated with this user (may be approximate). Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)


229
230
231
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 229

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



236
237
238
239
240
241
242
# File 'generated/google/apis/urlshortener_v1/classes.rb', line 236

def update!(**args)
  @items = args[:items] if args.key?(:items)
  @items_per_page = args[:items_per_page] if args.key?(:items_per_page)
  @kind = args[:kind] if args.key?(:kind)
  @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
  @total_items = args[:total_items] if args.key?(:total_items)
end