Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multi-parameter transforms #57

Closed
aslakhellesoy opened this issue Aug 5, 2016 · 2 comments
Closed

Multi-parameter transforms #57

aslakhellesoy opened this issue Aug 5, 2016 · 2 comments
Labels
⚡ enhancement Request for new functionality

Comments

@aslakhellesoy
Copy link
Contributor

Summary

Consider this step:

Given I fly the route between LHR and CDG

I want a Route value object that's composed of those two. I can see how I fly the route between {origin:airport} and {destination:airport} would work, but I want my step to receive a Route VO composed of two Airport VOs

Possible Solution

(Example in Ruby):

@transform_lookup.add_transform(Transform.new(
  'route',
  Route,
  '([A-Z]{3}).*([A-Z]{3})',
  lambda { |from, to| Route.new(Airport.new(from), Airport.new(to)) }
))
@aslakhellesoy
Copy link
Contributor Author

Fixed by #227

@lock
Copy link

lock bot commented Oct 24, 2018

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked as resolved and limited conversation to collaborators Oct 24, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
⚡ enhancement Request for new functionality
Projects
None yet
Development

No branches or pull requests

1 participant