Class: Machina::Configuration
- Inherits:
-
Object
- Object
- Machina::Configuration
- Defined in:
- lib/machina/configuration.rb
Overview
Holds configurable settings for the Machina gem such as service URLs, tokens, product identifiers, and cache options.
Instance Attribute Summary collapse
-
#cache_store ⇒ Object
Returns the value of attribute cache_store.
-
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
-
#identity_callback_uri ⇒ Object
Returns the value of attribute identity_callback_uri.
-
#identity_service_url ⇒ Object
Returns the value of attribute identity_service_url.
-
#manifest ⇒ Object
Returns the value of attribute manifest.
-
#product_id ⇒ Object
Returns the value of attribute product_id.
-
#product_slug ⇒ Object
Returns the value of attribute product_slug.
-
#service_token ⇒ Object
Returns the value of attribute service_token.
-
#skip_paths ⇒ Object
Returns the value of attribute skip_paths.
Instance Method Summary collapse
-
#initialize ⇒ Configuration
constructor
A new instance of Configuration.
Constructor Details
#initialize ⇒ Configuration
Returns a new instance of Configuration.
17 18 19 20 |
# File 'lib/machina/configuration.rb', line 17 def initialize @cache_ttl = 5.minutes @skip_paths = [] end |
Instance Attribute Details
#cache_store ⇒ Object
Returns the value of attribute cache_store.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def cache_store @cache_store end |
#cache_ttl ⇒ Object
Returns the value of attribute cache_ttl.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def cache_ttl @cache_ttl end |
#identity_callback_uri ⇒ Object
Returns the value of attribute identity_callback_uri.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def identity_callback_uri @identity_callback_uri end |
#identity_service_url ⇒ Object
Returns the value of attribute identity_service_url.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def identity_service_url @identity_service_url end |
#manifest ⇒ Object
Returns the value of attribute manifest.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def manifest @manifest end |
#product_id ⇒ Object
Returns the value of attribute product_id.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def product_id @product_id end |
#product_slug ⇒ Object
Returns the value of attribute product_slug.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def product_slug @product_slug end |
#service_token ⇒ Object
Returns the value of attribute service_token.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def service_token @service_token end |
#skip_paths ⇒ Object
Returns the value of attribute skip_paths.
7 8 9 |
# File 'lib/machina/configuration.rb', line 7 def skip_paths @skip_paths end |