Class: Moov::Models::Components::AuthToken
- Inherits:
-
Object
- Object
- Moov::Models::Components::AuthToken
- Extended by:
- T::Sig
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/moov/models/components/authtoken.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(token_type:, access_token:, refresh_token:, expires_in:, scope:) ⇒ AuthToken
constructor
A new instance of AuthToken.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(token_type:, access_token:, refresh_token:, expires_in:, scope:) ⇒ AuthToken
Returns a new instance of AuthToken.
28 29 30 31 32 33 34 |
# File 'lib/moov/models/components/authtoken.rb', line 28 def initialize(token_type:, access_token:, refresh_token:, expires_in:, scope:) @token_type = token_type @access_token = access_token @refresh_token = refresh_token @expires_in = expires_in @scope = scope end |
Instance Method Details
#==(other) ⇒ Object
37 38 39 40 41 42 43 44 45 |
# File 'lib/moov/models/components/authtoken.rb', line 37 def ==(other) return false unless other.is_a? self.class return false unless @token_type == other.token_type return false unless @access_token == other.access_token return false unless @refresh_token == other.refresh_token return false unless @expires_in == other.expires_in return false unless @scope == other.scope true end |