Sha256: e3b73faf2369088bec8097f58a0a7f8f3378df35a3601c0a730f9db6346ced66

Contents?: true

Size: 954 Bytes

Versions: 22

Compression:

Stored size: 954 Bytes

Contents

class CoTailors::ProfileMeasurement
  include Mongoid::Document
  include Mongoid::Timestamps

  UNITS = [ :inches, :centimeters ]
  UNITS_INCHES = :inches
  UNITS_CENTIMETERS = :centimeters
  field :units, :type => Symbol

  belongs_to :profile,    :class_name => 'Ish::UserProfile', :optional => true
  belongs_to :order_item, :class_name => 'CoTailors::OrderItem',   :optional => true

  ## shirt
  field :neck_around,    :type => Float, :default => 0
  field :chest_around,   :type => Float, :default => 0
  field :waist_around,   :type => Float, :default => 0
  field :sleeve_length,  :type => Float, :default => 0
  field :shoulder_width, :type => Float, :default => 0
  field :shirt_length,   :type => Float, :default => 0
  field :bicep_around,   :type => Float, :default => 0
  field :wrist_around,   :type => Float, :default => 0 # Is this optional? I want less here
  ## pants
  # length
  # waist
  # hips
  ## suit

  field :nickname

end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
ish_models-0.0.33.163 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.162 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.161 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.160 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.159 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.158 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.157 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.156 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.154 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.153 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.152 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.151 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.150 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.149 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.148 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.147 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.146 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.145 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.144 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.143 lib/co_tailors/profile_measurement.rb