class SE::API::Question
Attributes
answers[R]
Public Class Methods
new(item_json)
click to toggle source
Calls superclass method
SE::API::Post::new
# File lib/se/api/types/question.rb, line 8 def initialize(item_json) super(item_json) @answers = Array(item_json["answers"]).map { |i| Answer.new(i) } end