bima-shark-sdk
Installation
Include bima-shark-sdk in your Gemfile and put the gem in the vendor/cache directory of your Rails application.
gem "bima-shark-sdk"
Configuration
Shark.configure do |config|
config.asset_service.site = __ASSET_SERVICE_URL__
config.contact_service.site = __CONTACT_SERVICE_URL__
config..site = __CONSENT_SERVICE_URL__
config.double_opt_in_service.site = __DOUBLE_OPT_IN_SERVICE_URL__
config.form_service.site = __FORM_SERVICE_URL__
config.subscription_service.site = __SUBSCRIPTION_SERVICE_URL__
config.survey_service.site = __MILACRM_URL__
end
If you want to send emails in your application also add:
Shark::MailingService.use_shark_mailer do |mailer|
mailer.context_helpers = [
ActiveSupport::NumberHelper
]
mailer.default_layout = 'system_2019'
mailer.default_template_root = File.('../../app/views', __dir__)
end
Testing
bundle exec rake spec
Documentation
Please look for the documentation in the wiki.