Initial commit
This commit is contained in:
20
app/services/vendors/vistar/vistar_settings.rb
vendored
Normal file
20
app/services/vendors/vistar/vistar_settings.rb
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
module Vendors
|
||||
module Vistar
|
||||
class VistarSettings
|
||||
include Singleton
|
||||
|
||||
def vistar_url(path)
|
||||
URI::join(
|
||||
AppConfig.get_mandatory('vendors.vistar.base_url'),
|
||||
path
|
||||
)
|
||||
end
|
||||
|
||||
def network_id
|
||||
AppConfig.get_mandatory('vendors.vistar.network_id')
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user