Class: Clerk::Models::Components::RoleSetMigration
- Inherits:
-
Object
- Object
- Clerk::Models::Components::RoleSetMigration
- Includes:
- Crystalline::MetadataFields
- Defined in:
- lib/clerk/models/components/role_set_migration.rb
Overview
Active migration information, only present when status is “enqueued” or “in_progress”
Instance Method Summary collapse
- #==(other) ⇒ Object
-
#initialize(object:, id:, instance_id:, source_role_set_id:, trigger_type:, status:, migrated_members:, created_at:, updated_at:, organization_id: nil, dest_role_set_id: nil, mappings: nil, started_at: nil, completed_at: nil) ⇒ RoleSetMigration
constructor
A new instance of RoleSetMigration.
Methods included from Crystalline::MetadataFields
#field, #fields, included, #marshal_single, #to_dict, #to_json
Constructor Details
#initialize(object:, id:, instance_id:, source_role_set_id:, trigger_type:, status:, migrated_members:, created_at:, updated_at:, organization_id: nil, dest_role_set_id: nil, mappings: nil, started_at: nil, completed_at: nil) ⇒ RoleSetMigration
Returns a new instance of RoleSetMigration.
45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/clerk/models/components/role_set_migration.rb', line 45 def initialize(object:, id:, instance_id:, source_role_set_id:, trigger_type:, status:, migrated_members:, created_at:, updated_at:, organization_id: nil, dest_role_set_id: nil, mappings: nil, started_at: nil, completed_at: nil) @object = object @id = id @instance_id = instance_id @source_role_set_id = source_role_set_id @trigger_type = trigger_type @status = status @migrated_members = migrated_members @created_at = created_at @updated_at = updated_at @organization_id = organization_id @dest_role_set_id = dest_role_set_id @mappings = mappings @started_at = started_at @completed_at = completed_at end |
Instance Method Details
#==(other) ⇒ Object
63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 |
# File 'lib/clerk/models/components/role_set_migration.rb', line 63 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 @instance_id == other.instance_id return false unless @source_role_set_id == other.source_role_set_id return false unless @trigger_type == other.trigger_type return false unless @status == other.status return false unless @migrated_members == other.migrated_members return false unless @created_at == other.created_at return false unless @updated_at == other.updated_at return false unless @organization_id == other.organization_id return false unless @dest_role_set_id == other.dest_role_set_id return false unless @mappings == other.mappings return false unless @started_at == other.started_at return false unless @completed_at == other.completed_at true end |