Class: Futoase::Profile
- Inherits:
-
Object
- Object
- Futoase::Profile
- Defined in:
- lib/futoase/profile.rb
Instance Method Summary collapse
- #age ⇒ Object
- #facebook ⇒ Object
- #firstname ⇒ Object
- #github ⇒ Object
- #lastname ⇒ Object
- #mail ⇒ Object
- #name ⇒ Object
- #site ⇒ Object
- #twitter ⇒ Object
Instance Method Details
#age ⇒ Object
5 6 7 |
# File 'lib/futoase/profile.rb', line 5 def age (DateTime.now.to_time - DateTime.new(1981, 12, 13).to_time).to_i / (365 * 24 * 60 * 60) end |
#facebook ⇒ Object
33 34 35 |
# File 'lib/futoase/profile.rb', line 33 def facebook "https://facebook.com/futoase" end |
#firstname ⇒ Object
21 22 23 |
# File 'lib/futoase/profile.rb', line 21 def firstname "Keiji" end |
#github ⇒ Object
37 38 39 |
# File 'lib/futoase/profile.rb', line 37 def github "https://github.com/futoase" end |
#lastname ⇒ Object
25 26 27 |
# File 'lib/futoase/profile.rb', line 25 def lastname "Matsuzaki" end |
#mail ⇒ Object
17 18 19 |
# File 'lib/futoase/profile.rb', line 17 def mail "[email protected]" end |
#name ⇒ Object
9 10 11 |
# File 'lib/futoase/profile.rb', line 9 def name "#{firstname} #{lastname}" end |
#site ⇒ Object
13 14 15 |
# File 'lib/futoase/profile.rb', line 13 def site "http://futoase.github.io/" end |
#twitter ⇒ Object
29 30 31 |
# File 'lib/futoase/profile.rb', line 29 def twitter "https://twitter.com/xga" end |