Module: Consyncful
- Defined in:
- lib/consyncful.rb,
lib/consyncful/base.rb,
lib/consyncful/sync.rb,
lib/consyncful/stats.rb,
lib/consyncful/version.rb,
lib/consyncful/item_mapper.rb
Defined Under Namespace
Classes: Base, Configuration, ItemMapper, Railtie, Stats, Sync
Constant Summary collapse
- DEFAULT_CLIENT_OPTIONS =
{ reuse_entries: true, api_url: 'cdn.contentful.com' }.freeze
- VERSION =
'0.3.3'
Class Attribute Summary collapse
-
.configuration ⇒ Object
Returns the value of attribute configuration.
Class Method Summary collapse
Class Attribute Details
.configuration ⇒ Object
Returns the value of attribute configuration.
15 16 17 |
# File 'lib/consyncful.rb', line 15 def configuration @configuration end |
Class Method Details
.client ⇒ Object
39 40 41 42 43 44 45 |
# File 'lib/consyncful.rb', line 39 def self.client @client ||= begin = Consyncful.configuration. .reverse_merge!(DEFAULT_CLIENT_OPTIONS) Contentful::Client.new() end end |
.configure {|configuration| ... } ⇒ Object
18 19 20 21 |
# File 'lib/consyncful.rb', line 18 def self.configure self.configuration ||= Configuration.new yield(configuration) end |