Sha256: 402ec2606482d7653fc3042ef159b33ad8c551590d36b984c62bc08f36a84fc0

Contents?: true

Size: 679 Bytes

Versions: 5

Compression:

Stored size: 679 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
        @messages = []
        @questions = []
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

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