Module: NetSuiteRails::RecordSync::PullManager
- Extended by:
- PullManager
- Included in:
- PullManager
- Defined in:
- lib/netsuite_rails/record_sync/pull_manager.rb
Instance Method Summary collapse
Instance Method Details
#extract_custom_field_value(custom_field_value) ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/netsuite_rails/record_sync/pull_manager.rb', line 6 def extract_custom_field_value(custom_field_value) if custom_field_value.present? && custom_field_value.is_a?(Hash) && custom_field_value.has_key?(:name) custom_field_value = custom_field_value[:name] end if custom_field_value.present? && custom_field_value.is_a?(NetSuite::Records::CustomRecordRef) custom_field_value = custom_field_value.attributes[:name] end custom_field_value end |