Class: GatewaySignup::Registry
- Inherits:
-
Object
- Object
- GatewaySignup::Registry
- Defined in:
- lib/gateway_signup/registry.rb
Instance Method Summary collapse
- #countries ⇒ Object
- #details(gateway) ⇒ Object
- #fields_for(gateway) ⇒ Object
- #for_country(country) ⇒ Object
- #gateway_list ⇒ Object
- #gateways ⇒ Object
-
#initialize(args) ⇒ Registry
constructor
A new instance of Registry.
- #setup_sqlite(force) ⇒ Object
Constructor Details
#initialize(args) ⇒ Registry
Returns a new instance of Registry.
3 4 5 |
# File 'lib/gateway_signup/registry.rb', line 3 def initialize(args) @config = ConfigEngine.source args[:format], args[:location] end |
Instance Method Details
#countries ⇒ Object
19 20 21 |
# File 'lib/gateway_signup/registry.rb', line 19 def countries @config.countries end |
#details(gateway) ⇒ Object
27 28 29 |
# File 'lib/gateway_signup/registry.rb', line 27 def details(gateway) @config.details gateway end |
#fields_for(gateway) ⇒ Object
23 24 25 |
# File 'lib/gateway_signup/registry.rb', line 23 def fields_for(gateway) @config.fields_for gateway end |
#for_country(country) ⇒ Object
31 32 33 |
# File 'lib/gateway_signup/registry.rb', line 31 def for_country(country) @config.for_country country end |
#gateway_list ⇒ Object
15 16 17 |
# File 'lib/gateway_signup/registry.rb', line 15 def gateway_list @config.gateway_list end |
#gateways ⇒ Object
11 12 13 |
# File 'lib/gateway_signup/registry.rb', line 11 def gateways @config.gateways end |
#setup_sqlite(force) ⇒ Object
7 8 9 |
# File 'lib/gateway_signup/registry.rb', line 7 def setup_sqlite(force) @config.setup_db force end |