Method: Write::GG.find

Defined in:
app/models/write/gg.rb

.find(year, code) ⇒ Object



36
37
38
# File 'app/models/write/gg.rb', line 36

def self.find year, code
  all.find { |p| p.year == year.to_i && (p.code == code || p.qcode == code) }
end