Class: Pipl::Ethnicity
Instance Attribute Summary collapse
-
#content ⇒ String
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.
Attributes inherited from Field
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Ethnicity
constructor
A new instance of Ethnicity.
- #to_s ⇒ Object
Methods inherited from Field
base_params_from_hash, extra_metadata, from_hash, #is_searchable?, #to_hash
Methods included from Utils
alnum_chars, alpha_chars, date_to_str, is_valid_url?, str_to_date, titleize, to_utf8
Constructor Details
#initialize(params = {}) ⇒ Ethnicity
Returns a new instance of Ethnicity.
602 603 604 605 |
# File 'lib/pipl/fields.rb', line 602 def initialize(params={}) super params @content = params[:content] end |
Instance Attribute Details
#content ⇒ String
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
600 601 602 |
# File 'lib/pipl/fields.rb', line 600 def content @content end |