Class: Clerk::Models::Operations::ListOrganizationsRequest

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

Instance Method Summary collapse

Methods included from Crystalline::MetadataFields

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

Constructor Details

#initialize(include_members_count: nil, include_missing_member_with_elevated_permissions: nil, query: nil, user_id: nil, organization_id: nil, order_by: '-created_at', limit: 10, offset: 0) ⇒ ListOrganizationsRequest

Returns a new instance of ListOrganizationsRequest.



47
48
49
50
51
52
53
54
55
56
# File 'lib/clerk/models/operations/listorganizations_request.rb', line 47

def initialize(include_members_count: nil, include_missing_member_with_elevated_permissions: nil, query: nil, user_id: nil, organization_id: nil, order_by: '-created_at', limit: 10, offset: 0)
  @include_members_count = include_members_count
  @include_missing_member_with_elevated_permissions = include_missing_member_with_elevated_permissions
  @query = query
  @user_id = user_id
  @organization_id = organization_id
  @order_by = order_by
  @limit = limit
  @offset = offset
end

Instance Method Details

#==(other) ⇒ Object



59
60
61
62
63
64
65
66
67
68
69
70
# File 'lib/clerk/models/operations/listorganizations_request.rb', line 59

def ==(other)
  return false unless other.is_a? self.class
  return false unless @include_members_count == other.include_members_count
  return false unless @include_missing_member_with_elevated_permissions == other.include_missing_member_with_elevated_permissions
  return false unless @query == other.query
  return false unless @user_id == other.user_id
  return false unless @organization_id == other.organization_id
  return false unless @order_by == other.order_by
  return false unless @limit == other.limit
  return false unless @offset == other.offset
  true
end