Class: Ecko::Plugins::Sponsor::Engine

Inherits:
Object
  • Object
show all
Defined in:
lib/ecko/plugins/sponsor/engine.rb

Class Method Summary collapse

Class Method Details

.configure(schema) ⇒ Object

THis is the main engine configurer that the registry uses. THe schema is passed here and configured accordingly.



17
18
19
# File 'lib/ecko/plugins/sponsor/engine.rb', line 17

def configure(schema)
  Ecko::Plugins::Sponsor::Configurations.instance.setup(schema)
end

.gatewaysObject

The gateways to be able to sponsor.



22
23
24
# File 'lib/ecko/plugins/sponsor/engine.rb', line 22

def gateways
  Ecko::Plugins::Sponsor::Configurations.instance.gateways
end

.process(package_id, account) ⇒ Object

Processes the donation here.



27
28
29
# File 'lib/ecko/plugins/sponsor/engine.rb', line 27

def process(package_id, )
  Ecko::Plugins::Sponsor::Process.run(package_id, )
end