Class: AOJ::Status

Inherits:
Object
  • Object
show all
Defined in:
lib/aoj/status.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#code_sizeObject

Returns the value of attribute code_size.



3
4
5
# File 'lib/aoj/status.rb', line 3

def code_size
  @code_size
end

#cputimeObject

Returns the value of attribute cputime.



3
4
5
# File 'lib/aoj/status.rb', line 3

def cputime
  @cputime
end

#languageObject

Returns the value of attribute language.



3
4
5
# File 'lib/aoj/status.rb', line 3

def language
  @language
end

#memoryObject

Returns the value of attribute memory.



3
4
5
# File 'lib/aoj/status.rb', line 3

def memory
  @memory
end

#problem_idObject

Returns the value of attribute problem_id.



3
4
5
# File 'lib/aoj/status.rb', line 3

def problem_id
  @problem_id
end

#run_idObject

Returns the value of attribute run_id.



3
4
5
# File 'lib/aoj/status.rb', line 3

def run_id
  @run_id
end

#statusObject

Returns the value of attribute status.



3
4
5
# File 'lib/aoj/status.rb', line 3

def status
  @status
end

#submission_dateObject

Returns the value of attribute submission_date.



3
4
5
# File 'lib/aoj/status.rb', line 3

def submission_date
  @submission_date
end

#user_idObject

Returns the value of attribute user_id.



3
4
5
# File 'lib/aoj/status.rb', line 3

def user_id
  @user_id
end

Instance Method Details

#review_urlObject



5
6
7
8
9
10
# File 'lib/aoj/status.rb', line 5

def review_url
  nil unless run_id
  base_url = "http://judge.u-aizu.ac.jp/onlinejudge/review.jsp"
  params = { "rid" => run_id }
  base_url + "?" + params.to_query
end