Class: Pipl::Tag

Inherits:
Field show all
Defined in:
lib/pipl/fields.rb

Instance Attribute Summary collapse

Attributes inherited from Field

#current, #inferred, #last_seen, #valid_since

Class Method Summary collapse

Instance Method Summary collapse

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, extract_rate_limits, is_valid_url?, str_to_date, titleize, to_utf8

Constructor Details

#initialize(params = {}) ⇒ Tag

Returns a new instance of Tag.



666
667
668
669
670
# File 'lib/pipl/fields.rb', line 666

def initialize(params={})
  super params
  @content = params[:content]
  @classification = params[:classification]
end

Instance Attribute Details

#classificationObject

Returns the value of attribute classification.



664
665
666
# File 'lib/pipl/fields.rb', line 664

def classification
  @classification
end

#contentObject

Returns the value of attribute content.



664
665
666
# File 'lib/pipl/fields.rb', line 664

def content
  @content
end

Class Method Details

.extra_metadataObject



672
673
674
# File 'lib/pipl/fields.rb', line 672

def self.
  [:classification]
end

Instance Method Details

#to_sObject



676
677
678
# File 'lib/pipl/fields.rb', line 676

def to_s
  @content
end