Sha256: d599c26fe01ed108ff5464e049303bf532024534e0717767b38e9faf33d29a3d

Contents?: true

Size: 666 Bytes

Versions: 8

Compression:

Stored size: 666 Bytes

Contents

require_relative 'model_base'
require_relative 'customer_message'
require_relative 'customer_question'

module CorePro
  module Models
    class CustomerResponse < ModelBase
      attr_accessor :customerId
      attr_accessor :messages
      attr_accessor :questions
      attr_accessor :verificationId
      attr_accessor :verificationStatus

      def from_json! json, classDefs
        classDefs = classDefs || {}
        classDefs['messages'] = CustomerMessage
        classDefs['questions'] = CustomerQuestion
        super json, classDefs
      end

      def initialize
        super
        @messages = []
        @questions = []
      end
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
corepro_fvr-1.0.9 lib/corepro/models/customer_response.rb
corepro_eg-1.0.8 lib/corepro/models/customer_response.rb
corepro_eg-1.0.7 lib/corepro/models/customer_response.rb
corepro_eg-1.0.6 lib/corepro/models/customer_response.rb
corepro_eg-1.0.5 lib/corepro/models/customer_response.rb
corepro_eg-1.0.4 lib/corepro/models/customer_response.rb
corepro_eg-1.0.3 lib/corepro/models/customer_response.rb
corepro_eg-1.0.2 lib/corepro/models/customer_response.rb