Method: WSDSL::Response#to_json
- Defined in:
- lib/response.rb
#to_json(*args) ⇒ String
Converts the object into a JSON representation
85 86 87 88 89 90 91 |
# File 'lib/response.rb', line 85 def to_json(*args) if nodes.size > 1 nodes.to_json(*args) else nodes.first.to_json(*args) end end |