Class: SalesforceRecord::Fields::FloatField

Inherits:
BaseField
  • Object
show all
Defined in:
lib/salesforce_record/fields.rb

Overview

A float

Instance Attribute Summary

Attributes inherited from BaseField

#local_name

Instance Method Summary collapse

Methods inherited from BaseField

#alias?, #encode, #initialize, #is_alias_of, #remote_name

Constructor Details

This class inherits a constructor from SalesforceRecord::Fields::BaseField

Instance Method Details

#parse(value) ⇒ Object



65
66
67
# File 'lib/salesforce_record/fields.rb', line 65

def parse(value)
  value.to_f
end