Class: ContentfulRails::Configuration
- Inherits:
-
Object
- Object
- ContentfulRails::Configuration
- Defined in:
- lib/contentful_rails.rb
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.
-
#enable_preview_domain ⇒ Object
Returns the value of attribute enable_preview_domain.
-
#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.
39 40 41 42 43 44 |
# File 'lib/contentful_rails.rb', line 39 def initialize @authenticate = true @slug_delimiter = "-" @perform_caching = Rails.configuration.action_controller.perform_caching @contentful_options = {} end |
Instance Attribute Details
#access_token ⇒ Object
Returns the value of attribute access_token.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def access_token @access_token end |
#authenticate_webhooks ⇒ Object
Returns the value of attribute authenticate_webhooks.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def authenticate_webhooks @authenticate_webhooks end |
#contentful_options ⇒ Object
Returns the value of attribute contentful_options.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def @contentful_options end |
#default_locale ⇒ Object
Returns the value of attribute default_locale.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def default_locale @default_locale end |
#enable_preview_domain ⇒ Object
Returns the value of attribute enable_preview_domain.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def enable_preview_domain @enable_preview_domain end |
#management_token ⇒ Object
Returns the value of attribute management_token.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def management_token @management_token end |
#perform_caching ⇒ Object
Returns the value of attribute perform_caching.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def perform_caching @perform_caching end |
#preview_access_token ⇒ Object
Returns the value of attribute preview_access_token.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def preview_access_token @preview_access_token end |
#preview_domain ⇒ Object
Returns the value of attribute preview_domain.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def preview_domain @preview_domain end |
#preview_password ⇒ Object
Returns the value of attribute preview_password.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def preview_password @preview_password end |
#preview_username ⇒ Object
Returns the value of attribute preview_username.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def preview_username @preview_username end |
#slug_delimiter ⇒ Object
Returns the value of attribute slug_delimiter.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def slug_delimiter @slug_delimiter end |
#space ⇒ Object
Returns the value of attribute space.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def space @space end |
#webhooks_password ⇒ Object
Returns the value of attribute webhooks_password.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def webhooks_password @webhooks_password end |
#webhooks_username ⇒ Object
Returns the value of attribute webhooks_username.
23 24 25 |
# File 'lib/contentful_rails.rb', line 23 def webhooks_username @webhooks_username end |