Class: ContentfulRails::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/contentful_rails.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

Returns the value of attribute access_token.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def access_token
  @access_token
end

#authenticate_webhooksObject

Returns the value of attribute authenticate_webhooks.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def authenticate_webhooks
  @authenticate_webhooks
end

#contentful_optionsObject

Returns the value of attribute contentful_options.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def contentful_options
  @contentful_options
end

#default_localeObject

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_domainObject

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_tokenObject

Returns the value of attribute management_token.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def management_token
  @management_token
end

#perform_cachingObject

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_tokenObject

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_domainObject

Returns the value of attribute preview_domain.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def preview_domain
  @preview_domain
end

#preview_passwordObject

Returns the value of attribute preview_password.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def preview_password
  @preview_password
end

#preview_usernameObject

Returns the value of attribute preview_username.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def preview_username
  @preview_username
end

#slug_delimiterObject

Returns the value of attribute slug_delimiter.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def slug_delimiter
  @slug_delimiter
end

#spaceObject

Returns the value of attribute space.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def space
  @space
end

#webhooks_passwordObject

Returns the value of attribute webhooks_password.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def webhooks_password
  @webhooks_password
end

#webhooks_usernameObject

Returns the value of attribute webhooks_username.



23
24
25
# File 'lib/contentful_rails.rb', line 23

def webhooks_username
  @webhooks_username
end