Module: QuickbloxApi::Helpers
- Included in:
- BaseClient
- Defined in:
- lib/quickblox_api/helpers.rb
Instance Method Summary collapse
Instance Method Details
#safe_parse(response) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/quickblox_api/helpers.rb', line 3 def safe_parse(response) begin JSON.parse(response, symbolize_names: true) rescue JSON::ParserError => e {} end end |