Class: Google::Apis::PlusV1::PeopleFeed

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/plus_v1/classes.rb,
generated/google/apis/plus_v1/representations.rb,
generated/google/apis/plus_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) ⇒ PeopleFeed

Returns a new instance of PeopleFeed



1364
1365
1366
# File 'generated/google/apis/plus_v1/classes.rb', line 1364

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

Instance Attribute Details

#etagString

ETag of this response for caching purposes. Corresponds to the JSON property etag

Returns:

  • (String)


1327
1328
1329
# File 'generated/google/apis/plus_v1/classes.rb', line 1327

def etag
  @etag
end

#itemsArray<Google::Apis::PlusV1::Person>

The people in this page of results. Each item includes the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method. Corresponds to the JSON property items

Returns:



1334
1335
1336
# File 'generated/google/apis/plus_v1/classes.rb', line 1334

def items
  @items
end

#kindString

Identifies this resource as a collection of people. Value: "plus#peopleFeed". Corresponds to the JSON property kind

Returns:

  • (String)


1339
1340
1341
# File 'generated/google/apis/plus_v1/classes.rb', line 1339

def kind
  @kind
end

#next_page_tokenString

The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results. Corresponds to the JSON property nextPageToken

Returns:

  • (String)


1345
1346
1347
# File 'generated/google/apis/plus_v1/classes.rb', line 1345

def next_page_token
  @next_page_token
end

Link to this resource. Corresponds to the JSON property selfLink

Returns:

  • (String)


1350
1351
1352
# File 'generated/google/apis/plus_v1/classes.rb', line 1350

def self_link
  @self_link
end

#titleString

The title of this collection of people. Corresponds to the JSON property title

Returns:

  • (String)


1355
1356
1357
# File 'generated/google/apis/plus_v1/classes.rb', line 1355

def title
  @title
end

#total_itemsFixnum

The total number of people available in this list. The number of people in a response might be smaller due to paging. This might not be set for all collections. Corresponds to the JSON property totalItems

Returns:

  • (Fixnum)


1362
1363
1364
# File 'generated/google/apis/plus_v1/classes.rb', line 1362

def total_items
  @total_items
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1369
1370
1371
1372
1373
1374
1375
1376
1377
# File 'generated/google/apis/plus_v1/classes.rb', line 1369

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