Class: Moov::Models::Components::RevokeTokenRequest
- Inherits:
-
Object
- Object
- Moov::Models::Components::RevokeTokenRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/revoketokenrequest.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(token:, token_type_hint: nil, client_id: nil, client_secret: nil) ⇒ RevokeTokenRequest
constructor
A new instance of RevokeTokenRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(token:, token_type_hint: nil, client_id: nil, client_secret: nil) ⇒ RevokeTokenRequest
Returns a new instance of RevokeTokenRequest.
26 27 28 29 30 31 |
# File 'lib/moov/models/components/revoketokenrequest.rb', line 26 def initialize(token:, token_type_hint: nil, client_id: nil, client_secret: nil) @token = token @token_type_hint = token_type_hint @client_id = client_id @client_secret = client_secret end |
Instance Method Details
#==(other) ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'lib/moov/models/components/revoketokenrequest.rb', line 34 def ==(other) return false unless other.is_a? self.class return false unless @token == other.token return false unless @token_type_hint == other.token_type_hint return false unless @client_id == other.client_id return false unless @client_secret == other.client_secret true end |