Class: AncientCityRuby::DrawingEntry
- Inherits:
-
Object
- Object
- AncientCityRuby::DrawingEntry
- Defined in:
- lib/ancient-city-ruby/drawing_entry.rb
Constant Summary collapse
- ENTRY_URL =
"http://pivotal-tracker-drawing.herokuapp.com/entries"
Class Method Summary collapse
Class Method Details
.create!(email) ⇒ Object
5 6 7 8 9 |
# File 'lib/ancient-city-ruby/drawing_entry.rb', line 5 def self.create!(email) uri = URI(ENTRY_URL) res = Net::HTTP.post_form(uri, "entry[email]" => email) JSON.parse(res.body)["message"] end |