Class: Acclir::AtCoder::Contest
- Inherits:
-
Object
- Object
- Acclir::AtCoder::Contest
- Defined in:
- lib/acclir/at_coder/contest.rb
Overview
AtCoder contest
Constant Summary collapse
- TASKS_PATH_PROC =
->(id) { "/contests/#{id}/tasks" }
Instance Attribute Summary collapse
-
#id ⇒ Object
readonly
Returns the value of attribute id.
Instance Method Summary collapse
-
#initialize(id) ⇒ Contest
constructor
A new instance of Contest.
- #tasks ⇒ Object
Constructor Details
#initialize(id) ⇒ Contest
Returns a new instance of Contest.
11 12 13 |
# File 'lib/acclir/at_coder/contest.rb', line 11 def initialize(id) @id = id end |
Instance Attribute Details
#id ⇒ Object (readonly)
Returns the value of attribute id.
9 10 11 |
# File 'lib/acclir/at_coder/contest.rb', line 9 def id @id end |