Module: Tmdb::Utils
- Included in:
- Resource
- Defined in:
- lib/tmdb/utils.rb
Instance Method Summary collapse
Instance Method Details
#parse_json(string) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/tmdb/utils.rb', line 3 def parse_json(string) begin JSON.parse(string) rescue JSON::ParserError return {} end end |