Class: Moov::Models::Components::AuthTokenRequest
- Inherits:
-
Object
- Object
- Moov::Models::Components::AuthTokenRequest
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/authtokenrequest.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(grant_type:, client_id: nil, client_secret: nil, scope: nil, refresh_token: nil) ⇒ AuthTokenRequest
constructor
A new instance of AuthTokenRequest.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(grant_type:, client_id: nil, client_secret: nil, scope: nil, refresh_token: nil) ⇒ AuthTokenRequest
Returns a new instance of AuthTokenRequest.
31 32 33 34 35 36 37 |
# File 'lib/moov/models/components/authtokenrequest.rb', line 31 def initialize(grant_type:, client_id: nil, client_secret: nil, scope: nil, refresh_token: nil) @grant_type = grant_type @client_id = client_id @client_secret = client_secret @scope = scope @refresh_token = refresh_token end |
Instance Method Details
#==(other) ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'lib/moov/models/components/authtokenrequest.rb', line 40 def ==(other) return false unless other.is_a? self.class return false unless @grant_type == other.grant_type return false unless @client_id == other.client_id return false unless @client_secret == other.client_secret return false unless @scope == other.scope return false unless @refresh_token == other.refresh_token true end |