Class: Machina::Configuration

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializeConfiguration

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_storeObject

Returns the value of attribute cache_store.



7
8
9
# File 'lib/machina/configuration.rb', line 7

def cache_store
  @cache_store
end

#cache_ttlObject

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_uriObject

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_urlObject

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

#manifestObject

Returns the value of attribute manifest.



7
8
9
# File 'lib/machina/configuration.rb', line 7

def manifest
  @manifest
end

#product_idObject

Returns the value of attribute product_id.



7
8
9
# File 'lib/machina/configuration.rb', line 7

def product_id
  @product_id
end

#product_slugObject

Returns the value of attribute product_slug.



7
8
9
# File 'lib/machina/configuration.rb', line 7

def product_slug
  @product_slug
end

#service_tokenObject

Returns the value of attribute service_token.



7
8
9
# File 'lib/machina/configuration.rb', line 7

def service_token
  @service_token
end

#skip_pathsObject

Returns the value of attribute skip_paths.



7
8
9
# File 'lib/machina/configuration.rb', line 7

def skip_paths
  @skip_paths
end