class Rooftop::Rails::Configuration

Attributes

advanced_options[RW]
api_path[RW]
api_token[RW]
authenticate_webhooks[RW]
cache_logger[RW]
cache_store[RW]
extra_headers[RW]
logger[RW]
perform_http_response_caching[RW]
post_type_mapping[RW]
proxy[RW]
resource_route_map[RW]
site_name[RW]
ssl_options[RW]
url[RW]
webhooks_password[RW]
webhooks_username[RW]

Public Class Methods

new() click to toggle source
# File lib/rooftop/rails.rb, line 47
def initialize
  @authenticate_webhooks = true
  @perform_http_response_caching = ::Rails.configuration.action_controller.perform_caching
  @perform_object_caching = ->{::Rails.configuration.action_controller.perform_caching}
  @cache_store = ::Rails.cache
  @cache_logger = ::Rails.logger
  @ssl_options = {}
  @resource_route_map = {}
  @logger = nil
end

Public Instance Methods

perform_object_caching() click to toggle source
# File lib/rooftop/rails.rb, line 43
def perform_object_caching
  @perform_object_caching.call
end
perform_object_caching=(perform_caching) click to toggle source
# File lib/rooftop/rails.rb, line 35
def perform_object_caching=(perform_caching)
  if perform_caching.is_a?(Proc)
    @perform_object_caching = perform_caching
  else
    @perform_object_caching = ->{perform_caching}
  end
end