class Pipl::Ethnicity

Attributes

content[RW]

@!attribute content

@return [String] Ethnicity name based on the U.S Census Bureau.
Possible values are:
  white
  black
  american_indian
  alaska_native
  asian_indian
  chinese
  filipino
  other_asian
  japanese
  korean
  vietnamese
  native_hawaiian
  guamanian
  chamorro
  samoan
  other_pacific_islander
  other

Public Class Methods

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

Public Instance Methods

to_s() click to toggle source
# File lib/pipl/fields.rb, line 618
def to_s
  Pipl::Utils.titleize @content.gsub(/_/, ' ') if @content
end