Class: FacebookAds::FieldTypes::Double

Inherits:
Base
  • Object
show all
Defined in:
lib/facebook_ads/field_types/double.rb

Instance Method Summary collapse

Methods inherited from Base

#serialize

Methods included from FacebookAds::FieldTypes

#for, #lookup, #register

Instance Method Details

#deserialize(value, session = nil) ⇒ Object



12
13
14
# File 'lib/facebook_ads/field_types/double.rb', line 12

def deserialize(value, session = nil)
  value.is_a?(String) ? value[/[0-9.]+/].to_f : value
end