Skip to content

Instantly share code, notes, and snippets.

@foxiepaws
Created December 31, 2015 20:37
Show Gist options
  • Select an option

  • Save foxiepaws/f4d6bf3ec5b7a035c45e to your computer and use it in GitHub Desktop.

Select an option

Save foxiepaws/f4d6bf3ec5b7a035c45e to your computer and use it in GitHub Desktop.
module Partfox
class Part
include DataMapper::Resource
property :part, Serial # since part numbers are xxxx, we just use
# a serial here.
property :class, String
property :value, String
property :name, String
property :description, String
property :properties, YAML
has n, :mfgparts
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment