Method: WordsRubySdk::FieldResponse#initialize
- Defined in:
- lib/words_ruby_sdk/models/field_response.rb
#initialize(attributes = {}) ⇒ FieldResponse
Initializes the object
64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 |
# File 'lib/words_ruby_sdk/models/field_response.rb', line 64 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } if attributes.key?(:'Code') self.code = attributes[:'Code'] end if attributes.key?(:'Status') self.status = attributes[:'Status'] end if attributes.key?(:'Field') self.field = attributes[:'Field'] end end |