Class: Shirtsio::DSL

Inherits:
Object
  • Object
show all
Defined in:
lib/shirtsio/dsl.rb

Defined Under Namespace

Classes: QueryBuilder

Constant Summary collapse

SIZES =
[:xxsml, :xsml, :sml, :med, :lrg, :xlg, :xxl, :xxxl, :xxxxl, :xxxxxl, :xxxxxxl]
QUOTE =
[
  :print_type,
  :personalization,
  :address_count,
  :extra_screens,
  :ship_type,
  :international_garment_count,
  :garment => [
    :product_id,
    :color,
    :sizes => SIZES
  ],
  :print => [
    :front => [:color_count, :colors],
    :left => [:color_count, :colors],
    :right => [:color_count, :colors],
    :back => [:color_count, :colors]
  ]
]
ORDER =
[
  :test,
  :price,
  :print_type,
  :extra_screens,
  :ship_type,
  :packing_slip,
  :garment => [
    :product_id,
    :color,
    :sizes => SIZES
  ],
  :print => [
    :front => [:artwork, :proof, :color_count, :colors, :dimensions, :placement],
    :left => [:artwork, :proof, :color_count, :colors, :dimensions, :placement],
    :right => [:artwork, :proof, :color_count, :colors, :dimensions, :placement],
    :back => [:artwork, :proof, :color_count, :colors, :dimensions, :placement]
  ],
  :personalization => [
    :size,
    :batch,
    :number,
    :number_size,
    :name,
    :name_size
  ],
  :addresses => [
    :name,
    :company,
    :address,
    :address2,
    :city,
    :state,
    :zipcode,
    :country,
    :batch,
    :sizes => SIZES
  ]
]