Class: Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoAddress

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

Overview

Email address along with optional name and tokens. These tokens will be substituted for the variables in the form of [var_name], where var_name could be any string of no more than 32 bytes.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseCrmEventbusProtoAddress

Returns a new instance of EnterpriseCrmEventbusProtoAddress.



112
113
114
# File 'lib/google/apis/integrations_v1/classes.rb', line 112

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

Instance Attribute Details

#emailString

Required. Corresponds to the JSON property email

Returns:

  • (String)


100
101
102
# File 'lib/google/apis/integrations_v1/classes.rb', line 100

def email
  @email
end

#nameString

Corresponds to the JSON property name

Returns:

  • (String)


105
106
107
# File 'lib/google/apis/integrations_v1/classes.rb', line 105

def name
  @name
end

#tokensArray<Google::Apis::IntegrationsV1::EnterpriseCrmEventbusProtoToken>

Corresponds to the JSON property tokens



110
111
112
# File 'lib/google/apis/integrations_v1/classes.rb', line 110

def tokens
  @tokens
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



117
118
119
120
121
# File 'lib/google/apis/integrations_v1/classes.rb', line 117

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