Class: Filemaker::Model::Types::BigDecimal

Inherits:
Object
  • Object
show all
Defined in:
lib/filemaker/model/types/big_decimal.rb

Class Method Summary collapse

Class Method Details

.__filemaker_cast_to_ruby_object(value) ⇒ Object



5
6
7
8
9
10
# File 'lib/filemaker/model/types/big_decimal.rb', line 5

def self.__filemaker_cast_to_ruby_object(value)
  return nil if value.nil?
  return value if value.is_a?(::BigDecimal)

  BigDecimal(value.to_s)
end

.__filemaker_serialize_for_query(value) ⇒ Object



19
20
21
22
23
24
# File 'lib/filemaker/model/types/big_decimal.rb', line 19

def self.__filemaker_serialize_for_query(value)
  return nil if value.nil?
  return value if value.is_a?(::BigDecimal)

  BigDecimal(value.to_s)
end

.__filemaker_serialize_for_update(value) ⇒ Object



12
13
14
15
16
17
# File 'lib/filemaker/model/types/big_decimal.rb', line 12

def self.__filemaker_serialize_for_update(value)
  return nil if value.nil?
  return value if value.is_a?(::BigDecimal)

  BigDecimal(value.to_s)
end