Method: #format_response
- Defined in:
- lib/ugc/helpers/format.rb
#format_response(response) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/ugc/helpers/format.rb', line 4 def format_response(response) if response.multiple_entities? && response.collection.size > 1 format_collection response.collection else format_entity response.entity end end |