Skip to content

Instantly share code, notes, and snippets.

@erickuhn19
erickuhn19 / event.rb
Created May 6, 2015 01:44
DHH score challenge
class Event
attr_accessor :name
attr_accessor :score
def initialize(name, score=0)
@name = name
@score = score
end
end
@erickuhn19
erickuhn19 / cart.rb
Created May 8, 2015 02:20
price_calculator
require_relative 'local_grocery'
class Cart
attr_accessor :name
attr_accessor :cart
attr_accessor :convert
def initialize(name)
@name = name
@all_items = Hash.new(0)
@cart = []
@cart_with_quantities = Hash.new(0)

Keybase proof

I hereby claim:

  • I am erickuhn19 on github.
  • I am erickuhn19 (https://keybase.io/erickuhn19) on keybase.
  • I have a public key whose fingerprint is B312 AF97 E4F4 7B5C 94FA 7499 5754 EA3D AB3C E8EB

To claim this, I am signing this object:

did:3:kjzl6cwe1jw148necya09nm6xusgepcyehpqk5280t4febwmexpcrtg7dikpevm