module Nizicon::Members::Util

Public Instance Methods

age(current_date = Date.today) click to toggle source
# File lib/nizicon/members.rb, line 12
def age current_date = Date.today
  current_date.year - birthday.year - (current_date.yday < birthday.yday ? 1 : 0)
end
to_hash() click to toggle source
# File lib/nizicon/members.rb, line 16
def to_hash
  public_methods(false).inject({}) do |h, m|
    h[m] = public_send(m)

    h
  end
end