Module: CoreDataMotion

Defined in:
lib/core_data_motion.rb,
lib/core_data_motion/version.rb

Defined Under Namespace

Classes: Attribute, EntityDefinition, EntityDescriptor, FileWriter

Constant Summary collapse

VERSION =
"0.0.1"
DATA_TYPES =
{
  binary:         {
    descriptor:         "Binary",
    default_options:    {}
  },
  boolean:        {
    descriptor:         "Boolean",
    default_options:    {}
  },
  date:           {
    descriptor:         "Date",
    default_options:    {}
  },
  decimal:        {
    descriptor:         "Decimal",
    default_options:    {
      defaultValueString:   "0.0"
    }
  },
  double:         {
    descriptor:         "Double",
    default_options:    {
      defaultValueString:   "0.0"
    }
  },
  float:          {
    descriptor:         "Float",
    default_options:    {
      defaultValueString:   "0.0"
    }
  },
  int16:          {
    descriptor:         "Integer 16",
    default_options:    {
      defaultValueString:   "0"
    }
  },
  int32:          {
    descriptor:         "Integer 32",
    default_options:    {
      defaultValueString:   "0"
    }
  },
  int64:          {
    descriptor:         "Integer 64",
    default_options:    {
      defaultValueString:   "0"
    }
  },
  string:         {
    descriptor:         "String",
    default_options:    {}
  },
  transformable:  {
    descriptor:         "Transformable",
    default_options:    {}
  },
}
DEFAULT_ATTRIBUTE_OPTIONS =
{
  syncable:     "YES",
  optional:     "YES"
}