Class: TurkishBanks::Branch

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(branch_params) ⇒ Branch

Returns a new instance of Branch.



6
7
8
9
10
11
12
13
14
15
# File 'lib/turkish_banks/branch.rb', line 6

def initialize(branch_params)
  @name          = branch_params['sAd']
  @code          = branch_params['sKd']
  @bank_code     = branch_params['bKd']
  @city_code     = branch_params['sIlKd']
  @city          = branch_params['sIlAd']
  @district_code = branch_params['sIlcKd']
  @district      = branch_params['sIlcAd']
  @phone         = branch_params['tlf']
end

Instance Attribute Details

#bank_codeObject (readonly)

Returns the value of attribute bank_code.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def bank_code
  @bank_code
end

#cityObject (readonly)

Returns the value of attribute city.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def city
  @city
end

#city_codeObject (readonly)

Returns the value of attribute city_code.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def city_code
  @city_code
end

#codeObject (readonly)

Returns the value of attribute code.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def code
  @code
end

#districtObject (readonly)

Returns the value of attribute district.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def district
  @district
end

#district_codeObject (readonly)

Returns the value of attribute district_code.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def district_code
  @district_code
end

#nameObject (readonly)

Returns the value of attribute name.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def name
  @name
end

#phoneObject (readonly)

Returns the value of attribute phone.



3
4
5
# File 'lib/turkish_banks/branch.rb', line 3

def phone
  @phone
end