Class: CustomFielder::Value

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
DeserializationHelper, TypeCheckingHelper
Defined in:
app/models/custom_fielder/value.rb

Constant Summary

Constants included from DeserializationHelper

DeserializationHelper::FALSE_VALUES

Constants included from TypeCheckingHelper

TypeCheckingHelper::FALSE_VALUES, TypeCheckingHelper::TRUTH_VALUES

Instance Method Summary collapse

Methods included from DeserializationHelper

#array, #boolean, #date, #date_time, #deserialize, #fixnum, #float, #string

Methods included from TypeCheckingHelper

#is_array?, #is_boolean?, #is_correct_type?, #is_date?, #is_date_time?, #is_fixnum?, #is_float?, #is_string?

Instance Method Details

#raw_valueObject

Because everything is stored as string with ActiveRecord we use a alias method chain to rename the value method that uses the ActiveRecord String value to raw_value so when value is called it returns the deserialized value



26
# File 'app/models/custom_fielder/value.rb', line 26

def value; super; end

#valueObject

Because everything is stored as string with ActiveRecord we use a alias method chain to rename the value method that uses the ActiveRecord String value to raw_value so when value is called it returns the deserialized value



25
# File 'app/models/custom_fielder/value.rb', line 25

def value; super; end