Module: WebflowSync

Defined in:
app/models/concerns/webflow_sync/callbacks.rb,
lib/webflow_sync.rb,
lib/webflow_sync/engine.rb,
lib/webflow_sync/railtie.rb,
lib/webflow_sync/version.rb,
app/services/webflow_sync/api.rb,
lib/webflow_sync/configuration.rb,
app/jobs/webflow_sync/create_item_job.rb,
app/jobs/webflow_sync/update_item_job.rb,
app/jobs/webflow_sync/destroy_item_job.rb,
app/jobs/webflow_sync/initial_sync_job.rb,
app/models/concerns/webflow_sync/item_sync.rb,
lib/generators/webflow_sync/install_generator.rb,
lib/generators/webflow_sync/collection_generator.rb

Overview

Synchronizes any changes to public records to Webflow

Defined Under Namespace

Modules: Callbacks, Generators, ItemSync Classes: Api, Configuration, CreateItemJob, DestroyItemJob, Engine, InitialSyncJob, Railtie, UpdateItemJob

Constant Summary collapse

VERSION =
'9.0.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject

Returns the value of attribute configuration.



5
6
7
# File 'lib/webflow_sync/configuration.rb', line 5

def configuration
  @configuration
end

Class Method Details

.configure {|self.configuration| ... } ⇒ Object

Yields:



7
8
9
10
11
12
13
14
15
# File 'lib/webflow_sync/configuration.rb', line 7

def configure
  self.configuration ||= Configuration.new

  self.configuration.skip_webflow_sync = !Rails.env.production?

  yield(self.configuration)

  self.configuration.api_token ||= ENV.fetch('WEBFLOW_API_TOKEN')
end