Sha256: df680ecb88a43ede53da06bafcfc5d2508fa9dff1f607dd6ecb665d758fed8d0
Contents?: true
Size: 393 Bytes
Versions: 12
Compression:
Stored size: 393 Bytes
Contents
module LinkedIn class Birthdate < LinkedIn::Base def year @year ||= @doc.xpath("/person/date-of-birth/year").text.to_i end def day @day ||= @doc.xpath("/person/date-of-birth/day").text.to_i end def month @month ||= @doc.xpath("/person/date-of-birth/month").text.to_i end def to_date Date.civil(y=year,m=month,d=day) end end end
Version data entries
12 entries across 12 versions & 4 rubygems