Class: AOJ::Status
- Inherits:
-
Object
- Object
- AOJ::Status
- Defined in:
- lib/aoj/status.rb
Instance Attribute Summary collapse
-
#code_size ⇒ Object
Returns the value of attribute code_size.
-
#cputime ⇒ Object
Returns the value of attribute cputime.
-
#language ⇒ Object
Returns the value of attribute language.
-
#memory ⇒ Object
Returns the value of attribute memory.
-
#problem_id ⇒ Object
Returns the value of attribute problem_id.
-
#run_id ⇒ Object
Returns the value of attribute run_id.
-
#status ⇒ Object
Returns the value of attribute status.
-
#submission_date ⇒ Object
Returns the value of attribute submission_date.
-
#user_id ⇒ Object
Returns the value of attribute user_id.
Instance Method Summary collapse
Instance Attribute Details
#code_size ⇒ Object
Returns the value of attribute code_size.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def code_size @code_size end |
#cputime ⇒ Object
Returns the value of attribute cputime.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def cputime @cputime end |
#language ⇒ Object
Returns the value of attribute language.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def language @language end |
#memory ⇒ Object
Returns the value of attribute memory.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def memory @memory end |
#problem_id ⇒ Object
Returns the value of attribute problem_id.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def problem_id @problem_id end |
#run_id ⇒ Object
Returns the value of attribute run_id.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def run_id @run_id end |
#status ⇒ Object
Returns the value of attribute status.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def status @status end |
#submission_date ⇒ Object
Returns the value of attribute submission_date.
3 4 5 |
# File 'lib/aoj/status.rb', line 3 def submission_date @submission_date end |
#user_id ⇒ Object
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_url ⇒ Object
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 |