Sha256: d744905413df3374961303d139a8426ac89ed8b053fdb072ddf3df80a1faaa19

Contents?: true

Size: 803 Bytes

Versions: 5

Compression:

Stored size: 803 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 => 'IshModels::UserProfile', :optional => true
  belongs_to :order_item, :class_name => 'CoTailors::OrderItem',   :optional => true

  ## shirt
  field :neck_around,    :type => Float
  field :chest_around,   :type => Float
  field :waist_around,   :type => Float
  field :sleeve_length,  :type => Float
  field :shoulder_width, :type => Float
  field :shirt_length,   :type => Float
  field :bicep_around,   :type => Float
  field :wrist_around,   :type => Float
  ## pants
  # length
  # waist
  # hips
  ## suit

  field :nickname

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ish_models-0.0.33.63 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.62 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.61 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.60 lib/co_tailors/profile_measurement.rb
ish_models-0.0.33.59 lib/co_tailors/profile_measurement.rb