Class: EgovUtils::Iszr::Addresses::FetchForNaturalPerson::FromSampleData
- Inherits:
-
ActiveInteraction::Base
- Object
- ActiveInteraction::Base
- EgovUtils::Iszr::Addresses::FetchForNaturalPerson::FromSampleData
- Defined in:
- app/services/egov_utils/iszr/addresses/fetch_for_natural_person/from_sample_data.rb
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
[View source]
10 11 12 13 14 15 16 |
# File 'app/services/egov_utils/iszr/addresses/fetch_for_natural_person/from_sample_data.rb', line 10 def execute attrs = sample_results.detect do |address| address['remote_id'] == remote_id end EgovUtils::Address.new(attrs.except('remote_id')) end |