Module: Consyncful
- Defined in:
- lib/consyncful/configuration.rb,
lib/consyncful/base.rb,
lib/consyncful/sync.rb,
lib/consyncful/stats.rb,
lib/consyncful/version.rb,
lib/consyncful/item_mapper.rb,
lib/consyncful/persisted_item.rb
Overview
Handles Rails configurations for Consyncful
Defined Under Namespace
Classes: Base, Configuration, ItemMapper, PersistedItem, Railtie, Stats, Sync
Constant Summary
collapse
- VERSION =
'1.0.1'
- DEFAULT_CLIENT_OPTIONS =
{
reuse_entries: true,
api_url: 'cdn.contentful.com'
}.freeze
- DEFAULT_SYNC_OPTIONS =
{
limit: 100,
type: 'all'
}.freeze
Class Method Summary
collapse
Class Method Details
.client ⇒ Object
59
60
61
|
# File 'lib/consyncful/configuration.rb', line 59
def client
@client ||= Contentful::Client.new(Consyncful.configuration.client_options)
end
|
.configuration ⇒ Object
51
52
53
|
# File 'lib/consyncful/configuration.rb', line 51
def configuration
@configuration ||= Configuration.new
end
|
55
56
57
|
# File 'lib/consyncful/configuration.rb', line 55
def configure
yield configuration
end
|