Class: GustoEmbedded::Models::Shared::ResourceOwner

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

Overview

The resource owner (user) who authorized this access token. Null for system-level tokens or when the owner cannot be determined.

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(type: nil, uuid: nil) ⇒ ResourceOwner

Returns a new instance of ResourceOwner.



27
28
29
30
# File 'lib/gusto_embedded/models/shared/resource_owner.rb', line 27

def initialize(type: nil, uuid: nil)
  @type = type
  @uuid = uuid
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
# File 'lib/gusto_embedded/models/shared/resource_owner.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @type == other.type
  return false unless @uuid == other.uuid
  true
end