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



236
237
238
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 236

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

Instance Attribute Details

#bodyString

Email body. Corresponds to the JSON property body

Returns:

  • (String)


209
210
211
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 209

def body
  @body
end

#formatString

Email body format. Corresponds to the JSON property format

Returns:

  • (String)


214
215
216
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 214

def format
  @format
end

#fromString

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

Returns:

  • (String)


219
220
221
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 219

def from
  @from
end

#from_display_nameString

From display name. Corresponds to the JSON property fromDisplayName

Returns:

  • (String)


224
225
226
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 224

def from_display_name
  @from_display_name
end

#reply_toString

Reply-to address. Corresponds to the JSON property replyTo

Returns:

  • (String)


229
230
231
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 229

def reply_to
  @reply_to
end

#subjectString

Subject of the email. Corresponds to the JSON property subject

Returns:

  • (String)


234
235
236
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 234

def subject
  @subject
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



241
242
243
244
245
246
247
248
# File 'generated/google/apis/identitytoolkit_v3/classes.rb', line 241

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