Class: InstantQuote::ConnectionTranslators::Fake
- Inherits:
-
InstantQuote::ConnectionTranslator
- Object
- InstantQuote::ConnectionTranslator
- InstantQuote::ConnectionTranslators::Fake
- Defined in:
- lib/instant_quote/connection_translators/fake.rb
Instance Attribute Summary
Attributes inherited from InstantQuote::ConnectionTranslator
#application, #connection, #extra_info
Instance Method Summary collapse
Methods inherited from InstantQuote::ConnectionTranslator
Constructor Details
This class inherits a constructor from InstantQuote::ConnectionTranslator
Instance Method Details
#translate ⇒ Object
6 7 8 9 10 11 12 13 14 15 |
# File 'lib/instant_quote/connection_translators/fake.rb', line 6 def translate { salutation: app_user.salutation, first_name: app_user.first_name, last_name: app_user.last_name, date_of_birth: extra_info['date_of_birth'], registration_number: app_org.company_number, desired_status: extra_info['desired_status'] } end |