class Arpa::Repositories::Profiles::Remover

Public Instance Methods

destroy(entity) click to toggle source
# File lib/arpa/repositories/profiles/remover.rb, line 7
def destroy(entity)
  repository_class.destroy(entity.id)
end
disable(entity) click to toggle source
# File lib/arpa/repositories/profiles/remover.rb, line 11
def disable(entity)
  record = mapper_instance.map_to_record(entity)
  repository_class.update(record.id, removed: true)
  record.reload
  mapper_instance.map_to_entity(record)
end
mapper_instance() click to toggle source
# File lib/arpa/repositories/profiles/remover.rb, line 18
def mapper_instance
  Arpa::DataMappers::ProfileMapper.instance
end
repository_class() click to toggle source
# File lib/arpa/repositories/profiles/remover.rb, line 22
def repository_class
  RepositoryProfile
end