Class: Clerk::Models::Components::EnterpriseAccountOauth
- Inherits:
-
Object
- Object
- Clerk::Models::Components::EnterpriseAccountOauth
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/enterpriseaccount_oauth.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(status:, strategy:, expire_at:, object: nil, external_verification_redirect_url: nil, attempts: nil, error: nil, verified_at_client: nil) ⇒ EnterpriseAccountOauth
constructor
A new instance of EnterpriseAccountOauth.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(status:, strategy:, expire_at:, object: nil, external_verification_redirect_url: nil, attempts: nil, error: nil, verified_at_client: nil) ⇒ EnterpriseAccountOauth
Returns a new instance of EnterpriseAccountOauth.
33 34 35 36 37 38 39 40 41 42 |
# File 'lib/clerk/models/components/enterpriseaccount_oauth.rb', line 33 def initialize(status:, strategy:, expire_at:, object: nil, external_verification_redirect_url: nil, attempts: nil, error: nil, verified_at_client: nil) @status = status @strategy = strategy @expire_at = expire_at @object = object @external_verification_redirect_url = external_verification_redirect_url @attempts = attempts @error = error @verified_at_client = verified_at_client end |
Instance Method Details
#==(other) ⇒ Object
45 46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/clerk/models/components/enterpriseaccount_oauth.rb', line 45 def ==(other) return false unless other.is_a? self.class return false unless @status == other.status return false unless @strategy == other.strategy return false unless @expire_at == other.expire_at return false unless @object == other.object return false unless @external_verification_redirect_url == other.external_verification_redirect_url return false unless @attempts == other.attempts return false unless @error == other.error return false unless @verified_at_client == other.verified_at_client true end |