class Pipl::Url

Attributes

category[RW]

@!attribute url

@return [String] Actual Url

@!attribute category

@return [String] Category of the domain
Possible values are:
  background_reports
  contact_details
  email_address
  media
  personal_profiles
  professional_and_business
  public_records
  publications
  school_and_classmates
  web_pages

@!attribute domain

@return [String] Canonical domain of the url

@!attribute name

@return [String] Name of the website hosting the url

@!attribute sponsored

@return [Boolean] Indicate if this url comes from a sponsored data source

@!attribute sponsored

@return [String] Unique identifier of this url
domain[RW]

@!attribute url

@return [String] Actual Url

@!attribute category

@return [String] Category of the domain
Possible values are:
  background_reports
  contact_details
  email_address
  media
  personal_profiles
  professional_and_business
  public_records
  publications
  school_and_classmates
  web_pages

@!attribute domain

@return [String] Canonical domain of the url

@!attribute name

@return [String] Name of the website hosting the url

@!attribute sponsored

@return [Boolean] Indicate if this url comes from a sponsored data source

@!attribute sponsored

@return [String] Unique identifier of this url
name[RW]

@!attribute url

@return [String] Actual Url

@!attribute category

@return [String] Category of the domain
Possible values are:
  background_reports
  contact_details
  email_address
  media
  personal_profiles
  professional_and_business
  public_records
  publications
  school_and_classmates
  web_pages

@!attribute domain

@return [String] Canonical domain of the url

@!attribute name

@return [String] Name of the website hosting the url

@!attribute sponsored

@return [Boolean] Indicate if this url comes from a sponsored data source

@!attribute sponsored

@return [String] Unique identifier of this url
source_id[RW]

@!attribute url

@return [String] Actual Url

@!attribute category

@return [String] Category of the domain
Possible values are:
  background_reports
  contact_details
  email_address
  media
  personal_profiles
  professional_and_business
  public_records
  publications
  school_and_classmates
  web_pages

@!attribute domain

@return [String] Canonical domain of the url

@!attribute name

@return [String] Name of the website hosting the url

@!attribute sponsored

@return [Boolean] Indicate if this url comes from a sponsored data source

@!attribute sponsored

@return [String] Unique identifier of this url
sponsored[RW]

@!attribute url

@return [String] Actual Url

@!attribute category

@return [String] Category of the domain
Possible values are:
  background_reports
  contact_details
  email_address
  media
  personal_profiles
  professional_and_business
  public_records
  publications
  school_and_classmates
  web_pages

@!attribute domain

@return [String] Canonical domain of the url

@!attribute name

@return [String] Name of the website hosting the url

@!attribute sponsored

@return [Boolean] Indicate if this url comes from a sponsored data source

@!attribute sponsored

@return [String] Unique identifier of this url
url[RW]

@!attribute url

@return [String] Actual Url

@!attribute category

@return [String] Category of the domain
Possible values are:
  background_reports
  contact_details
  email_address
  media
  personal_profiles
  professional_and_business
  public_records
  publications
  school_and_classmates
  web_pages

@!attribute domain

@return [String] Canonical domain of the url

@!attribute name

@return [String] Name of the website hosting the url

@!attribute sponsored

@return [Boolean] Indicate if this url comes from a sponsored data source

@!attribute sponsored

@return [String] Unique identifier of this url

Public Class Methods

extra_metadata() click to toggle source
# File lib/pipl/fields.rb, line 557
def self.extra_metadata
  [:category, :domain, :name, :sponsored, :source_id]
end
new(params={}) click to toggle source
Calls superclass method Pipl::Field::new
# File lib/pipl/fields.rb, line 547
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

Public Instance Methods

is_searchable?() click to toggle source
# File lib/pipl/fields.rb, line 561
def is_searchable?
  not @url.to_s.empty?
end