Class: Response
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Response
- Defined in:
- app/models/response.rb
Instance Method Summary collapse
Instance Method Details
#result ⇒ Object
3 4 5 6 7 8 9 10 |
# File 'app/models/response.rb', line 3 def result result = {} if self.result_json.present? result = ActiveSupport::JSON.decode(self.result_json) result = Forms::Config.deep_symbolize_keys(result) end result end |
#result=(result) ⇒ Object
12 13 14 |
# File 'app/models/response.rb', line 12 def result=(result) self.result_json = ActiveSupport::JSON.encode(result) end |