Skip to content

Instantly share code, notes, and snippets.

@marti1125
Created April 28, 2013 16:42
Show Gist options
  • Save marti1125/5477461 to your computer and use it in GitHub Desktop.
Save marti1125/5477461 to your computer and use it in GitHub Desktop.
Game class
class Game
attr_accessor :name, :year, :system
attr_reader :created_at
def initialize(name, options={})
@name = name
@year = options[:year]
@system = options[:system]
@created_at = Time.now
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment