lib/ahub/question.rb in ahub-0.2.0 vs lib/ahub/question.rb in ahub-0.3.1

- old
+ new

@@ -12,22 +12,10 @@ user_headers = headers(username:username, password:password) create_resource(url: url, payload: payload, headers: user_headers) end - attr_accessor :title, :body, :body_as_html, :author - attr_reader :space_id, :answerCount - - def initialize(attrs) - @id = attrs[:id] - @answer_ids = attrs[:answers] - @answerCount = attrs[:answerCount] - @body = attrs[:body] - @body_as_html = attrs[:bodyAsHTML] - @space_id = attrs[:primaryContainerId] - @title = attrs[:title] - @topics = attrs[:topics] - end + attr_accessor :title, :body, :body_as_html def move(space_id:) raise Exception("No Question Id") unless id move_url = "#{self.class.base_url}/#{id}/move.json?space=#{space_id}"