Class: ZenginCode::Branch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bank, options = {}) ⇒ Branch

Returns a new instance of Branch.



4
5
6
7
8
9
10
11
# File 'lib/zengin_code/branch.rb', line 4

def initialize(bank, options = {})
  @bank = bank
  @code = options['code']
  @name = options['name']
  @kana = options['kana']
  @hira = options['hira']
  @roma = options['roma']
end

Instance Attribute Details

#bankObject (readonly)

Returns the value of attribute bank.



12
13
14
# File 'lib/zengin_code/branch.rb', line 12

def bank
  @bank
end

#codeObject (readonly)

Returns the value of attribute code.



12
13
14
# File 'lib/zengin_code/branch.rb', line 12

def code
  @code
end

#hiraObject (readonly)

Returns the value of attribute hira.



12
13
14
# File 'lib/zengin_code/branch.rb', line 12

def hira
  @hira
end

#kanaObject (readonly)

Returns the value of attribute kana.



12
13
14
# File 'lib/zengin_code/branch.rb', line 12

def kana
  @kana
end

#nameObject (readonly)

Returns the value of attribute name.



12
13
14
# File 'lib/zengin_code/branch.rb', line 12

def name
  @name
end

#romaObject (readonly)

Returns the value of attribute roma.



12
13
14
# File 'lib/zengin_code/branch.rb', line 12

def roma
  @roma
end