Class: ContentfulRails::Configuration

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

Overview

Configuration accessors

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_tokenObject

Returns the value of attribute access_token.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def access_token
  @access_token
end

#authenticate_webhooksObject

Returns the value of attribute authenticate_webhooks.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def authenticate_webhooks
  @authenticate_webhooks
end

#contentful_optionsObject

Returns the value of attribute contentful_options.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def contentful_options
  @contentful_options
end

#default_localeObject

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_mappingObject

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_domainObject

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

#environmentObject

Returns the value of attribute environment.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def environment
  @environment
end

#management_tokenObject

Returns the value of attribute management_token.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def management_token
  @management_token
end

#perform_cachingObject

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_tokenObject

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_domainObject

Returns the value of attribute preview_domain.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def preview_domain
  @preview_domain
end

#preview_passwordObject

Returns the value of attribute preview_password.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def preview_password
  @preview_password
end

#preview_usernameObject

Returns the value of attribute preview_username.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def preview_username
  @preview_username
end

#slug_delimiterObject

Returns the value of attribute slug_delimiter.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def slug_delimiter
  @slug_delimiter
end

#spaceObject

Returns the value of attribute space.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def space
  @space
end

#webhooks_passwordObject

Returns the value of attribute webhooks_password.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def webhooks_password
  @webhooks_password
end

#webhooks_usernameObject

Returns the value of attribute webhooks_username.



38
39
40
# File 'lib/contentful_rails.rb', line 38

def webhooks_username
  @webhooks_username
end