Class: Clerk::Models::Operations::UpsertTemplateRequestBody

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(name: nil, body: nil, from_email_name: nil, reply_to_email_name: nil, subject: nil, markup: nil, delivered_by_clerk: nil) ⇒ UpsertTemplateRequestBody

Returns a new instance of UpsertTemplateRequestBody.



36
37
38
39
40
41
42
43
44
# File 'lib/clerk/models/operations/upserttemplate_requestbody.rb', line 36

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

Instance Method Details

#==(other) ⇒ Object



47
48
49
50
51
52
53
54
55
56
57
# File 'lib/clerk/models/operations/upserttemplate_requestbody.rb', line 47

def ==(other)
  return false unless other.is_a? self.class
  return false unless @name == other.name
  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
  return false unless @markup == other.markup
  return false unless @delivered_by_clerk == other.delivered_by_clerk
  true
end