Class: Moov::Models::Components::SchemeOAuth2Auth

Inherits:
Object
  • Object
show all
Extended by:
T::Sig
Includes:
Crystalline::MetadataFields
Defined in:
lib/moov/models/components/schemeoauth2auth.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:, token_url: '/oauth2/token') ⇒ SchemeOAuth2Auth

Returns a new instance of SchemeOAuth2Auth.



23
24
25
26
27
# File 'lib/moov/models/components/schemeoauth2auth.rb', line 23

def initialize(client_id:, client_secret:, token_url: '/oauth2/token')
  @client_id = client_id
  @client_secret = client_secret
  @token_url = token_url
end

Instance Method Details

#==(other) ⇒ Object



30
31
32
33
34
35
36
# File 'lib/moov/models/components/schemeoauth2auth.rb', line 30

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 @token_url == other.token_url
  true
end