Class: Pipl::Url
Instance Attribute Summary collapse
-
#category ⇒ String
Possible values are: background_reports contact_details email_address media personal_profiles professional_and_business public_records publications school_and_classmates web_pages.
-
#domain ⇒ String
Canonical domain of the url.
-
#name ⇒ String
Name of the website hosting the url.
-
#source_id ⇒ Object
Returns the value of attribute source_id.
-
#sponsored ⇒ String
Unique identifier of this url.
-
#url ⇒ String
Actual Url.
Attributes inherited from Field
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Url
constructor
A new instance of Url.
Methods inherited from Field
base_params_from_hash, 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 = {}) ⇒ Url
537 538 539 540 541 542 543 544 545 |
# File 'lib/pipl/fields.rb', line 537 def initialize(params={}) super params @url = params[:url] @category = params[:category] @domain = params[:domain] @name = params[:name] @sponsored = params[:sponsored] @source_id = params[:source_id] end |
Instance Attribute Details
#category ⇒ String
Possible values are:
background_reports
contact_details
email_address
media
personal_profiles
professional_and_business
public_records
publications
school_and_classmates
web_pages
535 |
# File 'lib/pipl/fields.rb', line 535 attr_accessor :url, :category, :domain, :name, :sponsored, :source_id |
#domain ⇒ String
535 |
# File 'lib/pipl/fields.rb', line 535 attr_accessor :url, :category, :domain, :name, :sponsored, :source_id |
#name ⇒ String
535 |
# File 'lib/pipl/fields.rb', line 535 attr_accessor :url, :category, :domain, :name, :sponsored, :source_id |
#source_id ⇒ Object
Returns the value of attribute source_id.
535 536 537 |
# File 'lib/pipl/fields.rb', line 535 def source_id @source_id end |
#sponsored ⇒ String
535 |
# File 'lib/pipl/fields.rb', line 535 attr_accessor :url, :category, :domain, :name, :sponsored, :source_id |
#url ⇒ String
535 536 537 |
# File 'lib/pipl/fields.rb', line 535 def url @url end |
Class Method Details
.extra_metadata ⇒ Object
547 548 549 |
# File 'lib/pipl/fields.rb', line 547 def self. [:category, :domain, :name, :sponsored, :source_id] end |