Class: Clerk::Models::Components::GoogleOneTap
- Inherits:
-
Object
- Object
- Clerk::Models::Components::GoogleOneTap
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/googleonetap.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(status:, strategy:, object: nil, expire_at: nil, attempts: nil, verified_at_client: nil, error: nil) ⇒ GoogleOneTap
constructor
A new instance of GoogleOneTap.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(status:, strategy:, object: nil, expire_at: nil, attempts: nil, verified_at_client: nil, error: nil) ⇒ GoogleOneTap
Returns a new instance of GoogleOneTap.
31 32 33 34 35 36 37 38 39 |
# File 'lib/clerk/models/components/googleonetap.rb', line 31 def initialize(status:, strategy:, object: nil, expire_at: nil, attempts: nil, verified_at_client: nil, error: nil) @status = status @strategy = strategy @object = object @expire_at = expire_at @attempts = attempts @verified_at_client = verified_at_client @error = error end |
Instance Method Details
#==(other) ⇒ Object
42 43 44 45 46 47 48 49 50 51 52 |
# File 'lib/clerk/models/components/googleonetap.rb', line 42 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 @object == other.object return false unless @expire_at == other.expire_at return false unless @attempts == other.attempts return false unless @verified_at_client == other.verified_at_client return false unless @error == other.error true end |