Class: HanzawaNaoki

Inherits:
Object
  • Object
show all
Defined in:
lib/hanzawa_naoki.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeHanzawaNaoki

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

#birthdayObject (readonly)

Returns the value of attribute birthday.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def birthday
  @birthday
end

#clubObject (readonly)

Returns the value of attribute club.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def club
  @club
end

#fromObject (readonly)

Returns the value of attribute from.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def from
  @from
end

#jobObject (readonly)

Returns the value of attribute job.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def job
  @job
end

#job1Object (readonly)

Returns the value of attribute job1.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def job1
  @job1
end

#job2Object (readonly)

Returns the value of attribute job2.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def job2
  @job2
end

#nameObject (readonly)

Returns the value of attribute name.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def name
  @name
end

#universityObject (readonly)

Returns the value of attribute university.



4
5
6
# File 'lib/hanzawa_naoki.rb', line 4

def university
  @university
end

#wifeObject (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