lib/ahub/question.rb in ahub-0.1.17 vs lib/ahub/question.rb in ahub-0.2.0
- old
+ new
@@ -9,10 +9,10 @@
payload = {title: title, body: body, topics: topics}
payload[:spaceId] = space_id if space_id
user_headers = headers(username:username, password:password)
- make_post_call(url: url, payload: payload, headers: user_headers)
+ create_resource(url: url, payload: payload, headers: user_headers)
end
attr_accessor :title, :body, :body_as_html, :author
attr_reader :space_id, :answerCount