Method: Wavefront::Validators#wf_link_id?
- Defined in:
- lib/wavefront-sdk/validators.rb
#wf_link_id?(id) ⇒ Boolean
Ensure the given argument is a valid external Link ID
300 301 302 303 304 |
# File 'lib/wavefront-sdk/validators.rb', line 300 def wf_link_id?(id) return true if id.is_a?(String) && id =~ /^\w{16}$/ raise Wavefront::Exception::InvalidExternalLinkId, id end |