Class: Google::Apis::IdentitytoolkitV3::EmailTemplate

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

Overview

Template for an email template.

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

Returns a new instance of EmailTemplate



174
175
176
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 174

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

Instance Attribute Details

#bodyString

Email body. Corresponds to the JSON property body

Returns:

  • (String)


147
148
149
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 147

def body
  @body
end

#formatString

Email body format. Corresponds to the JSON property format

Returns:

  • (String)


152
153
154
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 152

def format
  @format
end

#fromString

From address of the email. Corresponds to the JSON property from

Returns:

  • (String)


157
158
159
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 157

def from
  @from
end

#from_display_nameString

From display name. Corresponds to the JSON property fromDisplayName

Returns:

  • (String)


162
163
164
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 162

def from_display_name
  @from_display_name
end

#reply_toString

Reply-to address. Corresponds to the JSON property replyTo

Returns:

  • (String)


167
168
169
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 167

def reply_to
  @reply_to
end

#subjectString

Subject of the email. Corresponds to the JSON property subject

Returns:

  • (String)


172
173
174
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 172

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



179
180
181
182
183
184
185
186
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 179

def update!(**args)
  @body = args[:body] if args.key?(:body)
  @format = args[:format] if args.key?(:format)
  @from = args[:from] if args.key?(:from)
  @from_display_name = args[:from_display_name] if args.key?(:from_display_name)
  @reply_to = args[:reply_to] if args.key?(:reply_to)
  @subject = args[:subject] if args.key?(:subject)
end