Sha256: 886358f3b603a6b56e5c3916b9da0bd0e2e7d5623201ba1bcb2415a9833fbb9b

Contents?: true

Size: 934 Bytes

Versions: 4

Compression:

Stored size: 934 Bytes

Contents

class MyPipeline < RubySync::Pipelines::BasePipeline

  client :my_csv

  vault :my_db

  # Remove any fields that you don't want to set in the client from the vault
  allow_out :first_name, :last_name

  # Remove any fields that you don't want to set in the vault from the client
  allow_in :first_name, :last_name

  # If the client and vault have different names for the same field, define the
  # the mapping here. For example, if the vault has a field called "first name" and
  # the client has a field called givenName you may put:
  #    'first name' => 'givenName'
  # separate each mapping with a comma.
  # The following fields were detected on the client:
  # 'id', 'given_name', 'surname'
  map_vault_to_client(
    'first_name' => 'given_name',
		'last_name' => 'surname'
  )

  # "in" means going from client to vault
  #in_transform do
  #end

  # "out" means going from vault to client
  #out_transform do
  #end

end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubysync-0.0.3 examples/my_ims/pipelines/my_pipeline.rb
rubysync-0.0.4 examples/my_ims/pipelines/my_pipeline.rb
rubysync-0.0.2 examples/my_ims/pipelines/my_pipeline.rb
rubysync-0.0.5 examples/my_ims/pipelines/my_pipeline.rb