Module: SubscriptionsTestKit::URLs

Instance Method Summary collapse

Instance Method Details

#base_urlObject



13
14
15
# File 'lib/subscriptions_test_kit/urls.rb', line 13

def base_url
  @base_url ||= "#{Inferno::Application['base_url']}/custom/#{suite_id}"
end

#fhir_subscription_urlObject



21
22
23
# File 'lib/subscriptions_test_kit/urls.rb', line 21

def fhir_subscription_url
  @fhir_subscription_url ||= base_url + FHIR_SUBSCRIPTION_PATH
end

#resume_fail_urlObject



29
30
31
# File 'lib/subscriptions_test_kit/urls.rb', line 29

def resume_fail_url
  @resume_fail_url ||= base_url + RESUME_FAIL_PATH
end

#resume_pass_urlObject



25
26
27
# File 'lib/subscriptions_test_kit/urls.rb', line 25

def resume_pass_url
  @resume_pass_url ||= base_url + RESUME_PASS_PATH
end

#subscription_channel_urlObject



17
18
19
# File 'lib/subscriptions_test_kit/urls.rb', line 17

def subscription_channel_url
  @subscription_channel_url ||= base_url + SUBSCRIPTION_CHANNEL_PATH
end

#suite_idObject



33
34
35
# File 'lib/subscriptions_test_kit/urls.rb', line 33

def suite_id
  self.class.suite.id
end