Sha256: a6c4155279af561f40aa6f01d1866464596f43f8cfe8ec8484bb125097a3e5b4
Contents?: true
Size: 699 Bytes
Versions: 3
Compression:
Stored size: 699 Bytes
Contents
# encoding: utf-8 module Github module Validations module Presence # TODO: Rename this # Ensures that esential arguments are present before request is made # def _validate_presence_of(*params) params.each do |param| raise ArgumentError, "parameter cannot be nil" if param.nil? end end # Check if user or repository parameters are passed # def _validate_user_repo_params(user_name, repo_name) raise ArgumentError, "[user] parameter cannot be nil" if user_name.nil? raise ArgumentError, "[repo] parameter cannot be nil" if repo_name.nil? end end # Presence end # Validations end # Github
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
github_api-0.6.3 | lib/github_api/validations/presence.rb |
github_api-0.6.2 | lib/github_api/validations/presence.rb |
github_api-0.6.1 | lib/github_api/validations/presence.rb |