Method: Exercism::Api#submit
- Defined in:
- lib/exercism/api.rb
#submit(filename) ⇒ Object
32 33 34 35 36 37 38 39 40 41 |
# File 'lib/exercism/api.rb', line 32 def submit(filename) path = File.join(filename) contents = File.read path json_request(:post, 'user/assignments', { :key => user.key, :code => contents, :path => path }) end |