Class: IbanBic::Configuration

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

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bics_table_nameObject

Returns the value of attribute bics_table_name.



5
6
7
# File 'lib/iban_bic/configuration.rb', line 5

def bics_table_name
  @bics_table_name
end

#iban_meta_pathObject

Returns the value of attribute iban_meta_path.



5
6
7
# File 'lib/iban_bic/configuration.rb', line 5

def iban_meta_path
  @iban_meta_path
end

#static_bics_pathObject

Returns the value of attribute static_bics_path.



5
6
7
# File 'lib/iban_bic/configuration.rb', line 5

def static_bics_path
  @static_bics_path
end

#use_static_bicsObject

Returns the value of attribute use_static_bics.



5
6
7
# File 'lib/iban_bic/configuration.rb', line 5

def use_static_bics
  @use_static_bics
end

Instance Method Details

#add(country) ⇒ Object



7
8
9
# File 'lib/iban_bic/configuration.rb', line 7

def add(country)
  IbanBic.country_validators[country] = Proc.new
end

#static_bics?Boolean

Returns:

  • (Boolean)


11
12
13
# File 'lib/iban_bic/configuration.rb', line 11

def static_bics?
  use_static_bics
end