Class: Rooftop::Rails::Configuration
- Inherits:
-
Object
- Object
- Rooftop::Rails::Configuration
- Defined in:
- lib/rooftop/rails.rb
Instance Attribute Summary collapse
-
#advanced_options ⇒ Object
Returns the value of attribute advanced_options.
-
#api_path ⇒ Object
Returns the value of attribute api_path.
-
#api_token ⇒ Object
Returns the value of attribute api_token.
-
#authenticate_webhooks ⇒ Object
Returns the value of attribute authenticate_webhooks.
-
#cache_logger ⇒ Object
Returns the value of attribute cache_logger.
-
#cache_store ⇒ Object
Returns the value of attribute cache_store.
-
#extra_headers ⇒ Object
Returns the value of attribute extra_headers.
-
#logger ⇒ Object
Returns the value of attribute logger.
-
#perform_http_response_caching ⇒ Object
Returns the value of attribute perform_http_response_caching.
-
#post_type_mapping ⇒ Object
Returns the value of attribute post_type_mapping.
-
#proxy ⇒ Object
Returns the value of attribute proxy.
-
#resource_route_map ⇒ Object
Returns the value of attribute resource_route_map.
-
#site_name ⇒ Object
Returns the value of attribute site_name.
-
#ssl_options ⇒ Object
Returns the value of attribute ssl_options.
-
#url ⇒ Object
Returns the value of attribute url.
-
#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.
- #perform_object_caching ⇒ Object
- #perform_object_caching=(perform_caching) ⇒ Object
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
47 48 49 50 51 52 53 54 55 56 |
# 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 |
Instance Attribute Details
#advanced_options ⇒ Object
Returns the value of attribute advanced_options.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def @advanced_options end |
#api_path ⇒ Object
Returns the value of attribute api_path.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def api_path @api_path end |
#api_token ⇒ Object
Returns the value of attribute api_token.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def api_token @api_token end |
#authenticate_webhooks ⇒ Object
Returns the value of attribute authenticate_webhooks.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def authenticate_webhooks @authenticate_webhooks end |
#cache_logger ⇒ Object
Returns the value of attribute cache_logger.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def cache_logger @cache_logger end |
#cache_store ⇒ Object
Returns the value of attribute cache_store.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def cache_store @cache_store end |
#extra_headers ⇒ Object
Returns the value of attribute extra_headers.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def extra_headers @extra_headers end |
#logger ⇒ Object
Returns the value of attribute logger.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def logger @logger end |
#perform_http_response_caching ⇒ Object
Returns the value of attribute perform_http_response_caching.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def perform_http_response_caching @perform_http_response_caching end |
#post_type_mapping ⇒ Object
Returns the value of attribute post_type_mapping.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def post_type_mapping @post_type_mapping end |
#proxy ⇒ Object
Returns the value of attribute proxy.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def proxy @proxy end |
#resource_route_map ⇒ Object
Returns the value of attribute resource_route_map.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def resource_route_map @resource_route_map end |
#site_name ⇒ Object
Returns the value of attribute site_name.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def site_name @site_name end |
#ssl_options ⇒ Object
Returns the value of attribute ssl_options.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def @ssl_options end |
#url ⇒ Object
Returns the value of attribute url.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def url @url end |
#webhooks_password ⇒ Object
Returns the value of attribute webhooks_password.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def webhooks_password @webhooks_password end |
#webhooks_username ⇒ Object
Returns the value of attribute webhooks_username.
17 18 19 |
# File 'lib/rooftop/rails.rb', line 17 def webhooks_username @webhooks_username end |
Instance Method Details
#perform_object_caching ⇒ Object
43 44 45 |
# File 'lib/rooftop/rails.rb', line 43 def perform_object_caching @perform_object_caching.call end |
#perform_object_caching=(perform_caching) ⇒ Object
35 36 37 38 39 40 41 |
# 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 |