Skip to content

Instantly share code, notes, and snippets.

@hayduke19us
Created December 5, 2016 19:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hayduke19us/45e24b2c85569cafa901fa786a70c34a to your computer and use it in GitHub Desktop.
Save hayduke19us/45e24b2c85569cafa901fa786a70c34a to your computer and use it in GitHub Desktop.
module Serializers
class BookingRequest < Base
template(:new_relic) do |booking_request|
itinerary = booking_request.booked_itinerary
{
agent_code: itinerary.agent_code
}
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment