Module: DvelpApiAuth::HelperMethods

Included in:
Authentication::ApiRequest, Authentication::Signature, Authentication::Validator
Defined in:
lib/dvelp_api_auth/helper_methods.rb

Instance Method Summary collapse

Instance Method Details

#blank?(instance) ⇒ Boolean

Returns:

  • (Boolean)


7
8
9
# File 'lib/dvelp_api_auth/helper_methods.rb', line 7

def blank?(instance)
  !present?(instance)
end

#present?(instance) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
# File 'lib/dvelp_api_auth/helper_methods.rb', line 3

def present?(instance)
  instance && !instance.to_s.empty?
end