Class: LighthouseClaimsServiceProvider

Inherits:
Object
  • Object
show all
Includes:
ClaimsServiceProvider
Defined in:
lib/disability_compensation/providers/claims_service/lighthouse_claims_service_provider.rb

Instance Method Summary collapse

Methods included from ClaimsServiceProvider

all_claims

Constructor Details

#initialize(icn) ⇒ LighthouseClaimsServiceProvider

Returns a new instance of LighthouseClaimsServiceProvider.



10
11
12
# File 'lib/disability_compensation/providers/claims_service/lighthouse_claims_service_provider.rb', line 10

def initialize(icn)
  @service = BenefitsClaims::Service.new(icn)
end

Instance Method Details

#all_claims(lighthouse_client_id = nil, lighthouse_rsa_key_path = nil) ⇒ Object



14
15
16
17
18
# File 'lib/disability_compensation/providers/claims_service/lighthouse_claims_service_provider.rb', line 14

def all_claims(lighthouse_client_id = nil, lighthouse_rsa_key_path = nil)
  # the below call to get_claims only gets potential OPEN claims
  data = @service.get_claims(lighthouse_client_id, lighthouse_rsa_key_path)['data']
  transform(data)
end