Class: Codeforces::Models::Users

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

Instance Attribute Summary

Attributes inherited from Base

#base, #client

Instance Method Summary collapse

Methods inherited from Base

#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

#grep(option) ⇒ Object



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

def grep(option)
  chain(base.select {|x| match?(option, x) })
end