lib/kentaa/api/resources/question.rb in kentaa-api-0.3.2 vs lib/kentaa/api/resources/question.rb in kentaa-api-0.4.0

- old
+ new

@@ -1,10 +1,20 @@ # frozen_string_literal: true module Kentaa module Api module Resources - class Question < Resource + class Question + attr_reader :data + + def initialize(data) + @data = data + end + + def id + data[:id] + end + def question data[:question] end def answer