class DataType::Object
Objects
Public Class Methods
default_mock()
click to toggle source
# File lib/dsl/data_types/primitives.rb, line 147 def self.default_mock self.native_class.new end
native_class()
click to toggle source
# File lib/dsl/data_types/primitives.rb, line 163 def self.native_class self.to_s.split('::').last.constantize end
Public Instance Methods
column_defaults()
click to toggle source
# File lib/dsl/data_types/primitives.rb, line 143 def column_defaults {:type => :text } end
mock()
click to toggle source
# File lib/dsl/data_types/primitives.rb, line 151 def mock @value || self.default_mock end
serialized?()
click to toggle source
# File lib/dsl/data_types/primitives.rb, line 155 def serialized? true end
serialized_class_name()
click to toggle source
# File lib/dsl/data_types/primitives.rb, line 159 def serialized_class_name self.class.native_class end