class Pipl::Username

Attributes

content[RW]

Public Class Methods

new(params={}) click to toggle source
Calls superclass method Pipl::Field::new
# File lib/pipl/fields.rb, line 421
def initialize(params={})
  super params
  @content = params[:content]
end

Public Instance Methods

is_searchable?() click to toggle source
# File lib/pipl/fields.rb, line 430
def is_searchable?
  !@content.nil? and Pipl::Utils.alnum_chars(@content).length > 2
end
to_hash() click to toggle source
# File lib/pipl/fields.rb, line 426
def to_hash
  {content: @content} if @content
end