lib/ahub/answer.rb in ahub-0.1.16 vs lib/ahub/answer.rb in ahub-0.1.17

- old
+ new

@@ -4,10 +4,10 @@ include Ahub::ClassHelpers def self.create(question_id:, body:, username:, password:) url = "#{Ahub::DOMAIN}/services/v2/question/#{question_id}/answer.json" - make_post_call(url, {body: body}, headers(username: username, password: password)) + make_post_call(url: url, payload: {body: body}, headers: headers(username: username, password: password)) end attr_reader :body, :body_as_html, :author def initialize(attrs)