Module: PaymobRuby::JsonSchemas::User
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/paymob_ruby/json_schemas/user.rb
Instance Method Summary collapse
Instance Method Details
#user_valid? ⇒ Boolean
6 7 8 9 10 |
# File 'lib/paymob_ruby/json_schemas/user.rb', line 6 def user_valid? JSON::Validator.validate!(customer_schema, @user) rescue JSON::Schema::ValidationError => e raise InvalidRequestError.new("Customer hash has the following error: #{e.}", :user) end |