lib/minered.rb in minered-0.0.5 vs lib/minered.rb in minered-0.0.6

- old
+ new

@@ -9,11 +9,19 @@ response = Typhoeus.get("http://#{@host}/issues.xml?key=#{@key}") get_response(response.body)['issues'] end def new_ticket(project_id, subject) - issue = Minered::Issue.new(@host, @key, project_id, subject) - get_response(issue) + response = Typhoeus.post( + "http://#{@host}/issues.xml?key=#{@key}", + body: { + issue: { + project_id: project_id, + subject: subject + } + } + ) + get_response(response.body) end private def get_reponse(body) \ No newline at end of file