Class: Slugable::Configuration

Inherits:
Struct
  • Object
show all
Defined in:
lib/slugable/has_slug.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(params) ⇒ Configuration

Returns a new instance of Configuration.



3
4
5
# File 'lib/slugable/has_slug.rb', line 3

def initialize(params)
  params.each { |key, value| public_send(:"#{key}=", value) }
end

Instance Attribute Details

#formatterObject

Returns the value of attribute formatter

Returns:

  • (Object)

    the current value of formatter



2
3
4
# File 'lib/slugable/has_slug.rb', line 2

def formatter
  @formatter
end

#tree_cache_storageObject

Returns the value of attribute tree_cache_storage

Returns:

  • (Object)

    the current value of tree_cache_storage



2
3
4
# File 'lib/slugable/has_slug.rb', line 2

def tree_cache_storage
  @tree_cache_storage
end