Sha256: 946e55a325a837533010b5c5e6488c7c8015f60761a4e1f2df98922fdd1322a8

Contents?: true

Size: 534 Bytes

Versions: 1

Compression:

Stored size: 534 Bytes

Contents

require 'date'

module Futoase
  class Profile
    def age
      (DateTime.now.to_time - DateTime.new(1981, 12, 13).to_time).to_i / (365 * 24 * 60 * 60)
    end

    def name
      "#{firstname} #{lastname}"
    end

    def site
      "http://futoase.github.io/"
    end

    def mail
      "futoase@gmail.com"
    end

    def firstname
      "Keiji"
    end

    def lastname
      "Matsuzaki"
    end

    def twitter
      "http://twitter.com/xga"
    end

    def facebook
      "http://facebook.com/futoase"
    end

  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
futoase-0.0.2 lib/futoase/profile.rb