Class: Clerk::Models::Operations::PreviewTemplateRequestBody

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/operations/previewtemplate_requestbody.rb

Overview

Required parameters

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

#field, #fields, included, #marshal_single, #to_dict, #to_json

Constructor Details

#initialize(body: nil, from_email_name: nil, reply_to_email_name: nil, subject: nil) ⇒ PreviewTemplateRequestBody

Returns a new instance of PreviewTemplateRequestBody.



30
31
32
33
34
35
# File 'lib/clerk/models/operations/previewtemplate_requestbody.rb', line 30

def initialize(body: nil, from_email_name: nil, reply_to_email_name: nil, subject: nil)
  @body = body
  @from_email_name = from_email_name
  @reply_to_email_name = reply_to_email_name
  @subject = subject
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
45
# File 'lib/clerk/models/operations/previewtemplate_requestbody.rb', line 38

def ==(other)
  return false unless other.is_a? self.class
  return false unless @body == other.body
  return false unless @from_email_name == other.from_email_name
  return false unless @reply_to_email_name == other.reply_to_email_name
  return false unless @subject == other.subject
  true
end