Class: HanzawaNaoki
- Inherits:
-
Object
- Object
- HanzawaNaoki
- Defined in:
- lib/hanzawa_naoki.rb
Instance Attribute Summary collapse
-
#birthday ⇒ Object
readonly
Returns the value of attribute birthday.
-
#club ⇒ Object
readonly
Returns the value of attribute club.
-
#from ⇒ Object
readonly
Returns the value of attribute from.
-
#job ⇒ Object
readonly
Returns the value of attribute job.
-
#job1 ⇒ Object
readonly
Returns the value of attribute job1.
-
#job2 ⇒ Object
readonly
Returns the value of attribute job2.
-
#name ⇒ Object
readonly
Returns the value of attribute name.
-
#university ⇒ Object
readonly
Returns the value of attribute university.
-
#wife ⇒ Object
readonly
Returns the value of attribute wife.
Instance Method Summary collapse
- #baigaeshida(num) ⇒ Object
-
#initialize ⇒ HanzawaNaoki
constructor
A new instance of HanzawaNaoki.
Constructor Details
#initialize ⇒ HanzawaNaoki
Returns a new instance of HanzawaNaoki.
6 7 8 9 10 11 12 13 14 15 16 |
# File 'lib/hanzawa_naoki.rb', line 6 def initialize @name = "半沢直樹" @job = "銀行員" @job1 = "東京中央銀行大阪西支店融資課課長" @job2 = "東京本部営業第二部次長" @from = "旧産業中央銀行" @university = "慶応義塾大学経済学部" @birthday = "1970年12月8日" @club = "剣道部" @wife = "半沢花" end |
Instance Attribute Details
#birthday ⇒ Object (readonly)
Returns the value of attribute birthday.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def birthday @birthday end |
#club ⇒ Object (readonly)
Returns the value of attribute club.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def club @club end |
#from ⇒ Object (readonly)
Returns the value of attribute from.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def from @from end |
#job ⇒ Object (readonly)
Returns the value of attribute job.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def job @job end |
#job1 ⇒ Object (readonly)
Returns the value of attribute job1.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def job1 @job1 end |
#job2 ⇒ Object (readonly)
Returns the value of attribute job2.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def job2 @job2 end |
#name ⇒ Object (readonly)
Returns the value of attribute name.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def name @name end |
#university ⇒ Object (readonly)
Returns the value of attribute university.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def university @university end |
#wife ⇒ Object (readonly)
Returns the value of attribute wife.
4 5 6 |
# File 'lib/hanzawa_naoki.rb', line 4 def wife @wife end |
Instance Method Details
#baigaeshida(num) ⇒ Object
18 19 20 |
# File 'lib/hanzawa_naoki.rb', line 18 def baigaeshida(num) num*2 end |