class Pipl::Gender
Attributes
content[RW]
Public Class Methods
new(params={})
click to toggle source
Calls superclass method
Pipl::Field::new
# File lib/pipl/fields.rb, line 572 def initialize(params={}) super params @content = params[:content] end
Public Instance Methods
to_hash()
click to toggle source
# File lib/pipl/fields.rb, line 581 def to_hash {content: @content} if @content end
to_s()
click to toggle source
# File lib/pipl/fields.rb, line 577 def to_s Pipl::Utils.titleize @content if @content end