Class: Clerk::Models::Components::Organization
- Inherits:
-
Object
- Object
- Clerk::Models::Components::Organization
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/organization.rb
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, name:, slug:, has_image:, max_allowed_memberships:, admin_delete_enabled:, public_metadata:, created_at:, updated_at:, image_url: nil, members_count: nil, missing_member_with_elevated_permissions: nil, pending_invitations_count: nil, private_metadata: nil, created_by: nil, last_active_at: nil) ⇒ Organization
constructor
A new instance of Organization.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, name:, slug:, has_image:, max_allowed_memberships:, admin_delete_enabled:, public_metadata:, created_at:, updated_at:, image_url: nil, members_count: nil, missing_member_with_elevated_permissions: nil, pending_invitations_count: nil, private_metadata: nil, created_by: nil, last_active_at: nil) ⇒ Organization
Returns a new instance of Organization.
54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 |
# File 'lib/clerk/models/components/organization.rb', line 54 def initialize(object:, id:, name:, slug:, has_image:, max_allowed_memberships:, admin_delete_enabled:, public_metadata:, created_at:, updated_at:, image_url: nil, members_count: nil, missing_member_with_elevated_permissions: nil, pending_invitations_count: nil, private_metadata: nil, created_by: nil, last_active_at: nil) @object = object @id = id @name = name @slug = slug @has_image = has_image @max_allowed_memberships = max_allowed_memberships @admin_delete_enabled = admin_delete_enabled = @created_at = created_at @updated_at = updated_at @image_url = image_url @members_count = members_count = @pending_invitations_count = pending_invitations_count = @created_by = created_by @last_active_at = last_active_at end |
Instance Method Details
#==(other) ⇒ Object
75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 |
# File 'lib/clerk/models/components/organization.rb', line 75 def ==(other) return false unless other.is_a? self.class return false unless @object == other.object return false unless @id == other.id return false unless @name == other.name return false unless @slug == other.slug return false unless @has_image == other.has_image return false unless @max_allowed_memberships == other.max_allowed_memberships return false unless @admin_delete_enabled == other.admin_delete_enabled return false unless == other. return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @image_url == other.image_url return false unless @members_count == other.members_count return false unless == other. return false unless @pending_invitations_count == other.pending_invitations_count return false unless == other. return false unless @created_by == other.created_by return false unless @last_active_at == other.last_active_at true end |