class WCC::Contentful::App::Configuration
This object contains all the configuration options for the `wcc-contentful` gem.
Constants
- ATTRIBUTES
TODO: things to configure in the app?
Attributes
preview_password[RW]
Sets the password that will be checked when the query string contains `preview=`, if it matches, then the Contentful entries are fetched via the preview API.
wcc_contentful_config[R]
Public Class Methods
new(wcc_contentful_config)
click to toggle source
# File lib/wcc/contentful/app/configuration.rb, line 20 def initialize(wcc_contentful_config) @wcc_contentful_config = wcc_contentful_config @preview_password = ENV['CONTENTFUL_PREVIEW_PASSWORD'] end
Public Instance Methods
frozen?()
click to toggle source
# File lib/wcc/contentful/app/configuration.rb, line 31 def frozen? false end
validate!()
click to toggle source
Validates the configuration, raising ArgumentError if anything is wrong. This is called by WCC::Contentful::App.init!
# File lib/wcc/contentful/app/configuration.rb, line 27 def validate! wcc_contentful_config.validate! end