class FDIC::BankFind::SchemaValidators::BaseValidator
Public Instance Methods
schema_valid!()
click to toggle source
# File lib/fdic/bank_find/schema_validators/base_validator.rb, line 10 def schema_valid! JSON::Validator.validate!(schema, response.parsed_response) #JSON::Validator.validate! will return true if it is successful, or raise if there is an error. Swallow true and return nil otherwise nil end
schema_valid?()
click to toggle source
# File lib/fdic/bank_find/schema_validators/base_validator.rb, line 6 def schema_valid? JSON::Validator.validate(schema, response.parsed_response) end
Protected Instance Methods
response()
click to toggle source
# File lib/fdic/bank_find/schema_validators/base_validator.rb, line 18 def response @response ||= Client.new.send(client_method, *client_method_arguments) end