class OrbitMembers::Utils
Public Class Methods
valid_json?(string)
click to toggle source
# File lib/orbit_members/utils.rb, line 5 def self.valid_json?(string) !JSON.parse(string).nil? rescue JSON::ParserError raise ArgumentError, "Expected confirmation from the Orbit API, but received nothing. Please check your logs and try again." end