Class: CustomerEntityResponse

Inherits:
JSONable
  • Object
show all
Defined in:
lib/Entities/customer_entity_response.rb

Instance Method Summary collapse

Methods inherited from JSONable

#from_json!, #to_h, #to_json

Constructor Details

#initialize(h = nil) ⇒ CustomerEntityResponse

Returns a new instance of CustomerEntityResponse.



5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# File 'lib/Entities/customer_entity_response.rb', line 5

def initialize(h = nil)

  if(h != nil)

    h.each {
        |k,v|

      propNameFormatted = k.to_s + "="

      if(CustomerEntityResponse.instance_methods(false).include?(propNameFormatted.to_sym))
        public_send("#{k}=",v)
      end

    }

  end

end

Instance Method Details

#accountToken=(accountToken) ⇒ Object



44
45
46
# File 'lib/Entities/customer_entity_response.rb', line 44

def accountToken=(accountToken)
  @accountToken = accountToken
end

#getIdObject



66
67
68
# File 'lib/Entities/customer_entity_response.rb', line 66

def getId
  return @id
end

#getIsSuccessObject



54
55
56
# File 'lib/Entities/customer_entity_response.rb', line 54

def getIsSuccess
  return @isSuccess
end

#getResponseCodeObject



62
63
64
# File 'lib/Entities/customer_entity_response.rb', line 62

def getResponseCode
  return @responseCode
end

#getResponseSummaryObject



58
59
60
# File 'lib/Entities/customer_entity_response.rb', line 58

def getResponseSummary
  return @responseSummary
end

#getValidationErrorsObject

Getters



50
51
52
# File 'lib/Entities/customer_entity_response.rb', line 50

def getValidationErrors
  return @validationErrors
end

#Id=(id) ⇒ Object



40
41
42
# File 'lib/Entities/customer_entity_response.rb', line 40

def Id=(id)
  @id = id
end

#IsSuccess=(isSuccess) ⇒ Object



28
29
30
# File 'lib/Entities/customer_entity_response.rb', line 28

def IsSuccess=(isSuccess)
  @isSuccess = isSuccess
end

#responseCode=(responseCode) ⇒ Object



36
37
38
# File 'lib/Entities/customer_entity_response.rb', line 36

def responseCode=(responseCode)
  @responseCode = responseCode
end

#ResponseSummary=(responseSummary) ⇒ Object



32
33
34
# File 'lib/Entities/customer_entity_response.rb', line 32

def ResponseSummary=(responseSummary)
  @responseSummary = responseSummary
end

#ValidationErrors=(validationErrors) ⇒ Object

ValidationError type



24
25
26
# File 'lib/Entities/customer_entity_response.rb', line 24

def ValidationErrors=(validationErrors) #ValidationError type
  @validationErrors = validationErrors
end