class Pipl::API::Response::Gender
Attributes
code[R]
estimation[R]
Public Class Methods
new(gender)
click to toggle source
# File lib/pipl/api/response/gender.rb, line 8 def initialize(gender) @code = gender.first @estimation = gender.last end
Public Instance Methods
to_hash()
click to toggle source
# File lib/pipl/api/response/gender.rb, line 13 def to_hash { code: code, estimation: estimation } end
Also aliased as: to_h