Class: ContentfulRails::Configuration
- Inherits:
-
Object
- Object
- ContentfulRails::Configuration
- Defined in:
- lib/contentful_rails.rb
Overview
Configuration accessors
Instance Attribute Summary collapse
-
#access_token ⇒ Object
Returns the value of attribute access_token.
-
#authenticate_webhooks ⇒ Object
Returns the value of attribute authenticate_webhooks.
-
#contentful_options ⇒ Object
Returns the value of attribute contentful_options.
-
#default_locale ⇒ Object
Returns the value of attribute default_locale.
-
#eager_load_entry_mapping ⇒ Object
Returns the value of attribute eager_load_entry_mapping.
-
#enable_preview_domain ⇒ Object
Returns the value of attribute enable_preview_domain.
-
#environment ⇒ Object
Returns the value of attribute environment.
-
#management_token ⇒ Object
Returns the value of attribute management_token.
-
#perform_caching ⇒ Object
Returns the value of attribute perform_caching.
-
#preview_access_token ⇒ Object
Returns the value of attribute preview_access_token.
-
#preview_domain ⇒ Object
Returns the value of attribute preview_domain.
-
#preview_password ⇒ Object
Returns the value of attribute preview_password.
-
#preview_username ⇒ Object
Returns the value of attribute preview_username.
-
#slug_delimiter ⇒ Object
Returns the value of attribute slug_delimiter.
-
#space ⇒ Object
Returns the value of attribute space.
-
#webhooks_password ⇒ Object
Returns the value of attribute webhooks_password.
-
#webhooks_username ⇒ Object
Returns the value of attribute webhooks_username.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
56 57 58 59 60 61 62 63 64 |
# File 'lib/contentful_rails.rb', line 56 def initialize @authenticate = true @slug_delimiter = '-' @environment = 'master' @default_locale = 'en-US' @perform_caching = Rails.configuration.action_controller.perform_caching @eager_load_entry_mapping = true @contentful_options = {} end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def access_token @access_token end |
#authenticate_webhooks ⇒ Object
Returns the value of attribute authenticate_webhooks.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def authenticate_webhooks @authenticate_webhooks end |
#contentful_options ⇒ Object
Returns the value of attribute contentful_options.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def @contentful_options end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def default_locale @default_locale end |
#eager_load_entry_mapping ⇒ Object
Returns the value of attribute eager_load_entry_mapping.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def eager_load_entry_mapping @eager_load_entry_mapping end |
#enable_preview_domain ⇒ Object
Returns the value of attribute enable_preview_domain.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def enable_preview_domain @enable_preview_domain end |
#environment ⇒ Object
Returns the value of attribute environment.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def environment @environment end |
#management_token ⇒ Object
Returns the value of attribute management_token.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def management_token @management_token end |
#perform_caching ⇒ Object
Returns the value of attribute perform_caching.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def perform_caching @perform_caching end |
#preview_access_token ⇒ Object
Returns the value of attribute preview_access_token.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def preview_access_token @preview_access_token end |
#preview_domain ⇒ Object
Returns the value of attribute preview_domain.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def preview_domain @preview_domain end |
#preview_password ⇒ Object
Returns the value of attribute preview_password.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def preview_password @preview_password end |
#preview_username ⇒ Object
Returns the value of attribute preview_username.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def preview_username @preview_username end |
#slug_delimiter ⇒ Object
Returns the value of attribute slug_delimiter.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def slug_delimiter @slug_delimiter end |
#space ⇒ Object
Returns the value of attribute space.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def space @space end |
#webhooks_password ⇒ Object
Returns the value of attribute webhooks_password.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def webhooks_password @webhooks_password end |
#webhooks_username ⇒ Object
Returns the value of attribute webhooks_username.
38 39 40 |
# File 'lib/contentful_rails.rb', line 38 def webhooks_username @webhooks_username end |