Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save ChasManRors/256f95f483f5af4ac303f0f8a6c8b77d to your computer and use it in GitHub Desktop.
Save ChasManRors/256f95f483f5af4ac303f0f8a6c8b77d to your computer and use it in GitHub Desktop.
AspectDefinition.all.pluck
(:aspected_type , :column , :code , :position , :start_campaign_id).group_by{ |x| x.first }
=> {"Location"=>
[["Location" , "cid" , "store_number" , 1 , 6] ,
["Location" , "name" , "name" , 2 , 6] ,
["Location" , "attr001" , "finance_store_number" , 3 , 6] ,
["Location" , "phone" , "phone" , 4 , 6] ,
["Location" , "address1" , "address_1" , 5 , 6] ,
["Location" , "address2" , "address_2" , 6 , 6] ,
["Location" , "city" , "city" , 7 , 6] ,
["Location" , "state" , "state" , 8 , 6] ,
["Location" , "zip" , "zip" , 9 , 6] ,
["Location" , "language_id" , "language" , 10 , 6] ,
["Location" , "country" , "country" , 11 , 6] ,
["Location" , "attr004" , "store_manager" , 13 , 6] ,
["Location" , "attr029" , "manager_mobile_phone_number" , 14 , 6] ,
["Location" , "email" , "manager_email_address" , 15 , 6] ,
["Location" , "attr045" , "store_champion" , 16 , 6] ,
["Location" , "attr047" , "store_champion_email" , 17 , 6] ,
["Location" , "attr046" , "additional_personnel_emails" , 18 , 6] ,
["Location" , "attr007" , "area_manager" , 19 , 6] ,
["Location" , "attr009" , "area_manager_email" , 20 , 6] ,
["Location" , "attr059" , "director" , 21 , 6] ,
["Location" , "attr060" , "director_email" , 22 , 6] ,
["Location" , "type_id" , "store_type" , 23 , 6] ,
["Location" , "attr003" , "network_type" , 24 , 6] ,
["Location" , "attr022" , "hspa_or_cdma" , 25 , 6] ,
["Location" , "attr033" , "byod" , 26 , 6] ,
["Location" , "attr048" , "football_design" , 27 , 6] ,
["Location" , "attr019" , "foh_square_footage" , 28 , 6] ,
["Location" , "attr020" , "total_square_footage" , 29 , 6] ,
["Location" , "attr005" , "store_location_within_retail_center" , 30 , 6] ,
["Location" , "attr006" , "front_door_orientation" , 31 , 6] ,
["Location" , "attr008" , "other_wireless_carriers_in_same_shopping_center" , 32 , 6] ,
["Location" , "attr058" , "exterior_building_finish" , 33 , 6] ,
["Location" , "attr010" , "exterior_building_color_behind_signage" , 34 , 6] ,
["Location" , "attr016" , "exterior_signage_type" , 35 , 6] ,
["Location" , "attr018" , "other_street_or_pylon_signage" , 36 , 6] ,
["Location" , "attr017" , "number_of_exterior_signs" , 37 , 6] ,
["Location" , "attr014" , "number_of_entry_doors" , 38 , 6] ,
["Location" , "attr015" , "number_of_store_front_windows" , 39 , 6] ,
["Location" , "attr012" , "are_there_posters_in_windows" , 40 , 6] ,
["Location" , "attr011" , "tint_on_front_windows_if_yes___color" , 41 , 6] ,
["Location" , "attr013" , "dimensions_of_store_front_windows" , 42 , 6] ,
["Location" , "attr021" , "type_of_flooring" , 43 , 6] ,
["Location" , "attr049" , "type_of_wall_finish" , 44 , 6] ,
["Location" , "attr023" , "ceiling_type" , 45 , 6] ,
["Location" , "attr024" , "does_store_have_blu_jett_fixture" , 46 , 6] ,
["Location" , "attr025" , "number_of_blu_jett_screens_in_store" , 47 , 6] ,
["Location" , "attr026" , "number_of_metro_vision_screens_in_store" , 48 , 6] ,
["Location" , "attr027" , "number_of_external_qpay_machines" , 49 , 6] ,
["Location" , "region_id" , "market" , 12 , 6] ,
["Location" , "attr050" , "number_of_internal_qpay_machines" , 50 , 6] ,
["Location" , "attr028" , "dropbox" , 51 , 6] ,
["Location" , "attr031" , "number_of_pos_stations" , 52 , 6] ,
["Location" , "attr037" , "number_of_disks_covered_in_graphics" , 53 , 6] ,
["Location" , "attr054" , "stanchions_being_used_" , 54 , 6] ,
["Location" , "attr030" , "number_of_live_phone_po_ds" , 55 , 6] ,
["Location" , "attr032" , "number_of_self_help_cabinets" , 56 , 6] ,
["Location" , "attr035" , "entryway_graphic_in_store" , 57 , 6] ,
["Location" , "attr036" , "number_of_panels_in_entryway_graphic" , 58 , 6] ,
["Location" , "attr057" , "graphic_divider_panel_in_store" , 59 , 6] ,
["Location" , "attr034" , "number_of_graphic_divider_panels" , 60 , 6] ,
["Location" , "attr053" , "number_of_swing_doors" , 61 , 6] ,
["Location" , "attr038" , "number_of_customer_chairs" , 62 , 6] ,
["Location" , "attr039" , "valance__ceiling_graphic_in_store" , 63 , 6] ,
["Location" , "attr040" , "number_of_acrylic_boxes_over_self_help_cabinets_" , 64 , 6] ,
["Location" , "attr041" , "number_of_clearance_accessory_spinners_" , 65 , 6] ,
["Location" , "attr051" , "lease_commencement_date_" , 66 , 6] ,
["Location" , "attr042" , "lease_term_" , 67 , 6] ,
["Location" , "attr043" , "lease_expiration_date_" , 68 , 6] ,
["Location" , "attr052" , "length_of_option_" , 69 , 6] ,
["Location" , "attr044" , "number_of_options_exercised_" , 70 , 6] ,
["Location" , "id" , "rbm_vmm_id" , 71 , 6] ,
["Location" , "status" , "status" , 72 , 6] ,
["Location" , "merchandising_date" , "merchandising_date" , 73 , 6] ,
["Location" , "date_to_place_order" , "order_insert_date" , 74 , 6] ,
["Location" , "actual_order_date" , "actual_order_date" , 75 , 6] ,
["Location" , "requested_delivery_date" , "requested_ship_date" , 76 , 6]] ,
"Content"=>
[["Content" , "language_id" , "language" , 1 , 6] ,
["Content" , "type" , "type" , 2 , 6] ,
["Content" , "category_id" , "category" , 3 , 6] ,
["Content" , "technology_id" , "technology" , 4 , 6] ,
["Content" , "order_max" , "order_max" , 5 , 6] ,
["Content" , "for_2g" , "2_g" , 6 , 6] ,
["Content" , "for_kiosk" , "kiosk" , 7 , 6] ,
["Content" , "attr001" , "3_g" , 8 , 6] ,
["Content" , "for_tier2" , "tier2" , 9 , 6] ,
["Content" , "for_1g" , "1_g" , 10 , 6] ,
["Content" , "unit_quantity" , "unit_quantity" , 11 , 6] ,
["Content" , "quantity" , "quantity_in_stock" , 12 , 6] ,
["Content" , "price" , "price" , 13 , 6] ,
["Content" , "item_number" , "item_number" , 14 , 6] ,
["Content" , "name" , "name" , 15 , 6] ,
["Content" , "warehouse_minimum_percent" , "warehouse_minimum_percent" , 16 , 6] ,
["Content" , "warehouse_minimum_quantity" , "warehouse_minimum_quantity" , 17 , 6] ,
["Content" , "campaign_id" , "campaign_tag" , 18 , 6] ,
["Content" , "store_payable" , "is_billable" , 19 , 6] ,
["Content" , "print_quantity_multiplier" , "print_quantity_multiplier" , 20 , 6]] ,
"FixtureType"=>
[["FixtureType" , "sort_order" , "sort_order" , 1 , 6]]}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment