Class: Codeforces::Models::Contests
- Defined in:
- lib/codeforces/models/contests.rb
Instance Attribute Summary
Attributes inherited from Base
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
#div1 ⇒ Object
5 6 7 |
# File 'lib/codeforces/models/contests.rb', line 5 def div1 invert_grep(:name => /Div[\.]? 2/) end |
#div2 ⇒ Object
9 10 11 |
# File 'lib/codeforces/models/contests.rb', line 9 def div2 grep(:name => /Div[\.]? 2/) end |
#rounds ⇒ Object
13 14 15 |
# File 'lib/codeforces/models/contests.rb', line 13 def rounds grep(:name => /^Codeforces( Alpha| Beta|) Round/) end |