Class: GustoEmbedded::Models::Operations::RefreshTokenRequest

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/gusto_embedded/models/operations/refresh_token_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(client_id:, client_secret:, grant_type:, refresh_token:, redirect_uri: nil) ⇒ RefreshTokenRequest

Returns a new instance of RefreshTokenRequest.



27
28
29
30
31
32
33
# File 'lib/gusto_embedded/models/operations/refresh_token_request.rb', line 27

def initialize(client_id:, client_secret:, grant_type:, refresh_token:, redirect_uri: nil)
  @client_id = client_id
  @client_secret = client_secret
  @grant_type = grant_type
  @refresh_token = refresh_token
  @redirect_uri = redirect_uri
end

Instance Method Details

#==(other) ⇒ Object



36
37
38
39
40
41
42
43
44
# File 'lib/gusto_embedded/models/operations/refresh_token_request.rb', line 36

def ==(other)
  return false unless other.is_a? self.class
  return false unless @client_id == other.client_id
  return false unless @client_secret == other.client_secret
  return false unless @grant_type == other.grant_type
  return false unless @refresh_token == other.refresh_token
  return false unless @redirect_uri == other.redirect_uri
  true
end