Class: Pipl::Tag
Instance Attribute Summary collapse
-
#classification ⇒ Object
Returns the value of attribute classification.
-
#content ⇒ Object
Returns the value of attribute content.
Attributes inherited from Field
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(params = {}) ⇒ Tag
constructor
A new instance of Tag.
- #to_s ⇒ Object
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 = {}) ⇒ Tag
Returns a new instance of Tag.
654 655 656 657 658 |
# File 'lib/pipl/fields.rb', line 654 def initialize(params={}) super params @content = params[:content] @classification = params[:classification] end |
Instance Attribute Details
#classification ⇒ Object
Returns the value of attribute classification.
652 653 654 |
# File 'lib/pipl/fields.rb', line 652 def classification @classification end |
#content ⇒ Object
Returns the value of attribute content.
652 653 654 |
# File 'lib/pipl/fields.rb', line 652 def content @content end |
Class Method Details
.extra_metadata ⇒ Object
660 661 662 |
# File 'lib/pipl/fields.rb', line 660 def self. [:classification] end |
Instance Method Details
#to_s ⇒ Object
664 665 666 |
# File 'lib/pipl/fields.rb', line 664 def to_s @content end |