Sha256: 50771913c93d412ad665d03c5488b78fc6b2b45cbc1f03d86dfeff23f2c0c8ce
Contents?: true
Size: 269 Bytes
Versions: 1
Compression:
Stored size: 269 Bytes
Contents
require "se/api/types/post" module SE module API class Question < Post attr_reader :answers def initialize(item_json) super(item_json) @answers = Array(item_json["answers"]).map { |i| Answer.new(i) } end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
se-api-0.0.1 | lib/se/api/types/question.rb |