Sha256: 017689e337d506ed055cccca5f8213a55657bcca18aac40d1bb0461b264778ff

Contents?: true

Size: 462 Bytes

Versions: 1

Compression:

Stored size: 462 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
        super
        @answers = []
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
corepro_eg-1.0.2 lib/corepro/models/customer_question.rb