Module: LinkedinV2::Helpers::Attribute

Defined in:
lib/linkedin_v2/helpers/attribute.rb

Class Method Summary collapse

Class Method Details

.present?(attr) ⇒ Boolean

Returns:

  • (Boolean)


5
6
7
# File 'lib/linkedin_v2/helpers/attribute.rb', line 5

def present?(attr)
  !attr.to_s.strip.empty?
end