Class: Pipl::UserID

Inherits:
Username show all
Defined in:
lib/pipl/fields.rb

Instance Attribute Summary

Attributes inherited from Username

#content

Attributes inherited from Field

#current, #inferred, #last_seen, #valid_since

Instance Method Summary collapse

Methods inherited from Username

#initialize, #to_hash

Methods inherited from Field

base_params_from_hash, extra_metadata, from_hash, #initialize, #to_hash

Methods included from Utils

alnum_chars, alpha_chars, date_to_str, extract_rate_limits, is_valid_url?, str_to_date, titleize, to_utf8

Constructor Details

This class inherits a constructor from Pipl::Username

Instance Method Details

#is_searchable?Boolean

Returns:

  • (Boolean)


440
441
442
# File 'lib/pipl/fields.rb', line 440

def is_searchable?
  ! /.+@.+/.match(@content).nil?
end