Class: LighthousePPIUProvider
- Inherits:
-
Object
- Object
- LighthousePPIUProvider
- Includes:
- PPIUProvider
- Defined in:
- lib/disability_compensation/providers/ppiu_direct_deposit/lighthouse_ppiu_provider.rb
Instance Method Summary collapse
- #get_payment_information(_lighthouse_client_id = nil, _lighthouse_rsa_key_path = nil) ⇒ Object
-
#initialize(current_user) ⇒ LighthousePPIUProvider
constructor
A new instance of LighthousePPIUProvider.
Methods included from PPIUProvider
Constructor Details
#initialize(current_user) ⇒ LighthousePPIUProvider
Returns a new instance of LighthousePPIUProvider.
10 11 12 |
# File 'lib/disability_compensation/providers/ppiu_direct_deposit/lighthouse_ppiu_provider.rb', line 10 def initialize(current_user) @service = DirectDeposit::Client.new(current_user.icn) end |
Instance Method Details
#get_payment_information(_lighthouse_client_id = nil, _lighthouse_rsa_key_path = nil) ⇒ Object
14 15 16 17 18 19 20 |
# File 'lib/disability_compensation/providers/ppiu_direct_deposit/lighthouse_ppiu_provider.rb', line 14 def get_payment_information(_lighthouse_client_id = nil, _lighthouse_rsa_key_path = nil) data = @service.get_payment_info # return value of get_payment_info is a hash with symbols. # Lighthouse::DirectDeposit::Response # transform accordingly transform(data) end |