Class: Codeforces::Models::Contests

Inherits:
Base
  • Object
show all
Defined in:
lib/codeforces/models/contests.rb

Instance Attribute Summary

Attributes inherited from Base

#base, #client

Instance Method Summary collapse

Methods inherited from Base

#grep, #initialize, #invert_grep

Constructor Details

This class inherits a constructor from Codeforces::Models::Base

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Codeforces::Models::Base

Instance Method Details

#div1Object



5
6
7
# File 'lib/codeforces/models/contests.rb', line 5

def div1
  invert_grep(:name => /Div[\.]? 2/)
end

#div2Object



9
10
11
# File 'lib/codeforces/models/contests.rb', line 9

def div2
  grep(:name => /Div[\.]? 2/)
end

#roundsObject



13
14
15
# File 'lib/codeforces/models/contests.rb', line 13

def rounds
  grep(:name => /^Codeforces( Alpha| Beta|) Round/)
end