Class: InstrumentResponse
- Inherits:
-
Object
- Object
- InstrumentResponse
- Defined in:
- lib/Entities/instrument_response.rb
Instance Method Summary collapse
-
#getId ⇒ Object
Getters.
- #getIsSuccess ⇒ Object
- #getResponseCode ⇒ Object
- #getResponseSummary ⇒ Object
- #getValidationErrors ⇒ Object
- #Id=(id) ⇒ Object
-
#initialize(h = nil) ⇒ InstrumentResponse
constructor
A new instance of InstrumentResponse.
- #IsSuccess=(isSuccess) ⇒ Object
- #ResponseCode=(responseCode) ⇒ Object
- #ResponseSummary=(responseSummary) ⇒ Object
-
#ValidationErrors=(validationErrors) ⇒ Object
ValidationError type.
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
#getId ⇒ Object
Getters
43 44 45 |
# File 'lib/Entities/instrument_response.rb', line 43 def getId return @id end |
#getIsSuccess ⇒ Object
55 56 57 |
# File 'lib/Entities/instrument_response.rb', line 55 def getIsSuccess return @isSuccess end |
#getResponseCode ⇒ Object
47 48 49 |
# File 'lib/Entities/instrument_response.rb', line 47 def getResponseCode return @responseCode end |
#getResponseSummary ⇒ Object
51 52 53 |
# File 'lib/Entities/instrument_response.rb', line 51 def getResponseSummary return @responseSummary end |
#getValidationErrors ⇒ Object
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 |