mirror of
https://github.com/we-promise/sure.git
synced 2026-04-09 07:14:47 +00:00
* Initial mercury impl * FIX both mercury and generator class * Finish mercury integration and provider generator * Fix schema * Fix linter and tags * Update routes.rb * Avoid schema drift --------- Signed-off-by: soky srm <sokysrm@gmail.com> Co-authored-by: Juan José Mata <juanjo.mata@gmail.com>
14 lines
259 B
Ruby
14 lines
259 B
Ruby
module MercuryItem::Provided
|
|
extend ActiveSupport::Concern
|
|
|
|
def mercury_provider
|
|
return nil unless credentials_configured?
|
|
|
|
Provider::Mercury.new(token, base_url: effective_base_url)
|
|
end
|
|
|
|
def syncer
|
|
MercuryItem::Syncer.new(self)
|
|
end
|
|
end
|