Class: BulkImports::Groups::Transformers::SubgroupToEntityTransformer

Inherits:
Object
  • Object
show all
Defined in:
lib/bulk_imports/groups/transformers/subgroup_to_entity_transformer.rb

Instance Method Summary collapse

Instance Method Details

#transform(context, entry) ⇒ Object


7
8
9
10
11
12
13
14
15
# File 'lib/bulk_imports/groups/transformers/subgroup_to_entity_transformer.rb', line 7

def transform(context, entry)
  {
    source_type: :group_entity,
    source_full_path: entry['full_path'],
    destination_name: entry['name'],
    destination_namespace: context.entity.group.full_path,
    parent_id: context.entity.id
  }
end