lib/github_api/validations/required.rb
# Validate all keys present in a provided hash against required set,
# on mismatch raise Github::Error::RequiredParams
# Note that keys need to be in the same format i.e. symbols or strings,
# otherwise the comparison will fail.
#
Validate all keys present in a provided hash against required set,
on mismatch raise Github::Error::RequiredParams
Note that keys need to be in the same format i.e. symbols or strings,
otherwise the comparison will fail.
Validate all keys present in a provided hash against required set on mismatch raise Github :: Error :: RequiredParams Note that keys need to be in the same format i . e . symbols or strings otherwise the comparison will fail .
def assert_required_keys(required, provided)
        result = required.all? do |key|
          provided.has_deep_key? key
        end
        if !result
          raise Github::Error::RequiredParams.new(provided, required)
        end
        result
      end
def assert_required_keys ( required , provided ) result = required . all? do | key | provided . has_deep_key? key end if ! result raise Github :: Error :: RequiredParams . new ( provided , required ) end result end
Validate all keys present in a provided hash against required set,
on mismatch raise Github::Error::RequiredParams
Note that keys need to be in the same format i.e.
Validate all keys present in a provided hash against required set on mismatch raise Github :: Error :: RequiredParams Note that keys need to be in the same format i . e .
required
<not_specific>
provided
<not_specific>