Class: Google::Apis::PeopleV1::DomainMembership

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

Overview

A Google Apps Domain membership.

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

Returns a new instance of DomainMembership



368
369
370
# File 'generated/google/apis/people_v1/classes.rb', line 368

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

Instance Attribute Details

#in_viewer_domainBoolean Also known as: in_viewer_domain?

True if the person is in the viewer's Google Apps domain. Corresponds to the JSON property inViewerDomain

Returns:

  • (Boolean)


365
366
367
# File 'generated/google/apis/people_v1/classes.rb', line 365

def in_viewer_domain
  @in_viewer_domain
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



373
374
375
# File 'generated/google/apis/people_v1/classes.rb', line 373

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