class Pipl::OriginCountry

Attributes

country[RW]

Public Class Methods

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

Public Instance Methods

to_s() click to toggle source
# File lib/pipl/fields.rb, line 655
def to_s
  Pipl::COUNTRIES[@country.upcase.to_sym] if @country
end