Class: Google::Apis::UrlshortenerV1::UrlHistory
- Inherits:
- 
      Object
      
        - Object
- Google::Apis::UrlshortenerV1::UrlHistory
 
- 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
- 
  
    
      #items  ⇒ Array<Google::Apis::UrlshortenerV1::Url> 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A list of URL resources. 
- 
  
    
      #items_per_page  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Number of items returned with each full "page" of results. 
- 
  
    
      #kind  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    The fixed string "urlshortener#urlHistory". 
- 
  
    
      #next_page_token  ⇒ String 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    A token to provide to get the next page of results. 
- 
  
    
      #total_items  ⇒ Fixnum 
    
    
  
  
  
  
    
    
  
  
  
  
  
  
    Total number of short URLs associated with this user (may be approximate). 
Instance Method Summary collapse
- 
  
    
      #initialize(**args)  ⇒ UrlHistory 
    
    
  
  
  
    constructor
  
  
  
  
  
  
  
    A new instance of UrlHistory. 
- 
  
    
      #update!(**args)  ⇒ Object 
    
    
  
  
  
  
  
  
  
  
  
    Update properties of this object. 
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
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
#items ⇒ Array<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_page ⇒ Fixnum
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
| 214 215 216 | # File 'generated/google/apis/urlshortener_v1/classes.rb', line 214 def items_per_page @items_per_page end | 
#kind ⇒ String
The fixed string "urlshortener#urlHistory".
Corresponds to the JSON property kind
| 219 220 221 | # File 'generated/google/apis/urlshortener_v1/classes.rb', line 219 def kind @kind end | 
#next_page_token ⇒ String
A token to provide to get the next page of results.
Corresponds to the JSON property nextPageToken
| 224 225 226 | # File 'generated/google/apis/urlshortener_v1/classes.rb', line 224 def next_page_token @next_page_token end | 
#total_items ⇒ Fixnum
Total number of short URLs associated with this user (may be approximate).
Corresponds to the JSON property totalItems
| 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 |