Sha256: f9d332b95cd5e9cdf8d1ec71f97add3b565f4634320c22f90973eec02bfc0e35

Contents?: true

Size: 469 Bytes

Versions: 5

Compression:

Stored size: 469 Bytes

Contents

require_relative 'json_base'
require_relative 'customer_answer'
module CorePro
  module Models
    class CustomerQuestion < JsonBase
      attr_accessor :answers
      attr_accessor :prompt
      attr_accessor :type

      def from_json! json, classDefs
        classDefs = classDefs || {}
        classDefs['answers'] = CustomerAnswer
        super json, classDefs
      end

      def initialize
        @answers = []
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
corepro-0.0.8 lib/corepro/models/customer_question.rb
corepro-0.0.7 lib/corepro/models/customer_question.rb
corepro-0.0.6 lib/corepro/models/customer_question.rb
corepro-0.0.5 lib/corepro/models/customer_question.rb
corepro-0.0.4 lib/CorePro/Models/customer_question.rb