Skip to content

Instantly share code, notes, and snippets.

View gusk's full-sized avatar

August King gusk

  • ThoughtWorks
  • Denver, CO
View GitHub Profile
@gusk
gusk / refactored http-parase
Last active August 29, 2015 14:01
http_parse
class HttpParser
def initialize(response)
@response = response
end
def headers
bar = {}
rar = {}
array = @response.lines
class Dogs
POOR = (0..5).to_a.sample
AVERAGE = (6..10).to_a.sample
EXCELLENT = (11..15).to_a.sample
def initialize
joe = {
:name => {:first => "Joe", :last => "Smith"},
:owner_quality => EXCELLENT
}