Method: AsposeHtml::MessageResponse#_to_hash
- Defined in:
- lib/aspose_html/models/message_response.rb
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
| 235 236 237 238 239 240 241 242 243 244 245 246 247 | # File 'lib/aspose_html/models/message_response.rb', line 235 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |