Class: Clerk::Models::Operations::UsersGetOrganizationMembershipsRequest

Inherits:
Object
  • Object
show all
Includes:
Crystalline::MetadataFields
Defined in:
lib/clerk/models/operations/usersgetorganizationmemberships_request.rb

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(user_id:, limit: 10, offset: 0) ⇒ UsersGetOrganizationMembershipsRequest

Returns a new instance of UsersGetOrganizationMembershipsRequest.



26
27
28
29
30
# File 'lib/clerk/models/operations/usersgetorganizationmemberships_request.rb', line 26

def initialize(user_id:, limit: 10, offset: 0)
  @user_id = user_id
  @limit = limit
  @offset = offset
end

Instance Method Details

#==(other) ⇒ Object



33
34
35
36
37
38
39
# File 'lib/clerk/models/operations/usersgetorganizationmemberships_request.rb', line 33

def ==(other)
  return false unless other.is_a? self.class
  return false unless @user_id == other.user_id
  return false unless @limit == other.limit
  return false unless @offset == other.offset
  true
end