Method: Codeforces::Client#paginate

Defined in:
lib/codeforces/client.rb

#paginate(offset) ⇒ Object



83
84
85
86
87
88
89
# File 'lib/codeforces/client.rb', line 83

def paginate(offset)
  offset = 0 if offset.nil?
  result = {
    :from => DEFAULT_PAGE_COUNT * offset + 1,
    :count => DEFAULT_PAGE_COUNT,
  }
end