Skip to content

Instantly share code, notes, and snippets.

View lawrencecurtis's full-sized avatar

Lawrence curtis lawrencecurtis

View GitHub Profile
# used to make a LOT of data nice and easy to loop through in the view
orders = orders.group_by(&:ItemCode)
orders.each do |key, order|
orders[key] = order.group_by(&:year)
orders[key].each do |k, year|
orders[key][k] = year.group_by(&:month)
total = 0
orders[key][k].each do |m, data|
#!/usr/bin/env ruby
require 'soap/wsdlDriver'
class Login
attr_accessor :userName
attr_accessor :password
def initialize(userName = nil, password = nil)
@userName = userName
@password = password