Class: Clerk::Models::Components::EnterpriseAccountVerificationOauthClerkError

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(message:, long_message:, code:, meta: nil) ⇒ EnterpriseAccountVerificationOauthClerkError



25
26
27
28
29
30
# File 'lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb', line 25

def initialize(message:, long_message:, code:, meta: nil)
  @message = message
  @long_message = long_message
  @code = code
  @meta = meta
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
40
# File 'lib/clerk/models/components/enterpriseaccount_verification_oauth_clerkerror.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @message == other.message
  return false unless @long_message == other.long_message
  return false unless @code == other.code
  return false unless @meta == other.meta
  true
end