Class: Google::Apis::MirrorV1::ListContactsResponse

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

Overview

A list of Contacts representing contacts. This is the response from the server to GET requests on the contacts collection.

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

Returns a new instance of ListContactsResponse.


294
295
296
# File 'generated/google/apis/mirror_v1/classes.rb', line 294

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

Instance Attribute Details

#itemsArray<Google::Apis::MirrorV1::Contact>

Contact list. Corresponds to the JSON property items


287
288
289
# File 'generated/google/apis/mirror_v1/classes.rb', line 287

def items
  @items
end

#kindString

The type of resource. This is always mirror#contacts. Corresponds to the JSON property kind

Returns:

  • (String)

292
293
294
# File 'generated/google/apis/mirror_v1/classes.rb', line 292

def kind
  @kind
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object


299
300
301
302
# File 'generated/google/apis/mirror_v1/classes.rb', line 299

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