Sha256: a46ad6e769a1f925d1b00d225ca04340dc9424a3d4324f906e2531584fdac97f
Contents?: true
Size: 817 Bytes
Versions: 2
Compression:
Stored size: 817 Bytes
Contents
module BookingSyncEngine cattr_accessor :support_multi_applications self.support_multi_applications = false cattr_accessor :single_app_model self.single_app_model = -> { ::Account } cattr_accessor :multi_app_model self.multi_app_model = -> { ::Account } cattr_accessor :oauth_client_connection_options self.oauth_client_connection_options = { request: { timeout: 2 } } cattr_accessor :token_refresh_timeout_retry_count self.token_refresh_timeout_retry_count = 2 cattr_accessor :bookingsync_id_key self.bookingsync_id_key = :synced_id def self.setup yield self end def self.support_multi_applications? support_multi_applications end def self.account_model support_multi_applications? ? multi_app_model.call : single_app_model.call end end require "bookingsync"
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bookingsync-engine-6.0.1 | lib/bookingsync-engine.rb |
bookingsync-engine-6.0.0 | lib/bookingsync-engine.rb |