Class: InstrumentResponse

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

Instance Method Summary collapse

Constructor Details

#initialize(h = nil) ⇒ InstrumentResponse

Returns a new instance of InstrumentResponse.



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

def initialize(h = nil)

  if(h != nil)
    h.each {
        |k,v|

      propNameFormatted = k.to_s + "="

      #passing true because we also need to check if property exists in parent class.
      if(InstrumentResponse.instance_methods(true).include?(propNameFormatted.to_sym))
        public_send("#{k}=",v)
      end
    }
  end

end

Instance Method Details

#getIdObject

Getters



43
44
45
# File 'lib/Entities/instrument_response.rb', line 43

def getId
  return @id
end

#getIsSuccessObject



55
56
57
# File 'lib/Entities/instrument_response.rb', line 55

def getIsSuccess
  return @isSuccess
end

#getResponseCodeObject



47
48
49
# File 'lib/Entities/instrument_response.rb', line 47

def getResponseCode
  return @responseCode
end

#getResponseSummaryObject



51
52
53
# File 'lib/Entities/instrument_response.rb', line 51

def getResponseSummary
  return @responseSummary
end

#getValidationErrorsObject



59
60
61
# File 'lib/Entities/instrument_response.rb', line 59

def getValidationErrors
  return @validationErrors
end

#Id=(id) ⇒ Object



21
22
23
# File 'lib/Entities/instrument_response.rb', line 21

def Id=(id)
  @id = id
end

#IsSuccess=(isSuccess) ⇒ Object



33
34
35
# File 'lib/Entities/instrument_response.rb', line 33

def IsSuccess=(isSuccess)
  @isSuccess = isSuccess
end

#ResponseCode=(responseCode) ⇒ Object



25
26
27
# File 'lib/Entities/instrument_response.rb', line 25

def ResponseCode=(responseCode)
  @responseCode = responseCode
end

#ResponseSummary=(responseSummary) ⇒ Object



29
30
31
# File 'lib/Entities/instrument_response.rb', line 29

def ResponseSummary=(responseSummary)
  @responseSummary = responseSummary
end

#ValidationErrors=(validationErrors) ⇒ Object

ValidationError type



37
38
39
# File 'lib/Entities/instrument_response.rb', line 37

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