Class: DingSDK::Models::Shared::CreateAuthenticationResponse

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/ding_sdk/models/shared/createauthenticationresponse.rb

Overview

A successful response to an authentication creation request.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(authentication_uuid: nil, created_at: nil, expires_at: nil, status: nil) ⇒ CreateAuthenticationResponse

Returns a new instance of CreateAuthenticationResponse.



31
32
33
34
35
36
# File 'lib/ding_sdk/models/shared/createauthenticationresponse.rb', line 31

def initialize(authentication_uuid: nil, created_at: nil, expires_at: nil, status: nil)
  @authentication_uuid = authentication_uuid
  @created_at = created_at
  @expires_at = expires_at
  @status = status
end

Instance Method Details

#==(other) ⇒ Object



38
39
40
41
42
43
44
45
# File 'lib/ding_sdk/models/shared/createauthenticationresponse.rb', line 38

def ==(other)
  return false unless other.is_a? self.class
  return false unless @authentication_uuid == other.authentication_uuid
  return false unless @created_at == other.created_at
  return false unless @expires_at == other.expires_at
  return false unless @status == other.status
  true
end