Skip to content

Instantly share code, notes, and snippets.

class Pesel
EXAMPLE_PESELS = [ '47011901252', '70070918820', '21073003385', '46121508302' ]
...
end
class Game < ActiveRecord::Base
belongs_to :category
validates_presence_of :title, :category_id, :description,
:price, :platform, :year
def get_official_price
open("http://thegamedatabase.com/api/game/#{name}/price?api_key=ek2o1je")
end
def print