Class: Seofy::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/seofy/configuration.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Configuration

Returns a new instance of Configuration.



4
5
6
7
8
# File 'lib/seofy/configuration.rb', line 4

def initialize(options)
  @source = options[:source]
  adapter_klass = "seofy/adapters/#{options[:adapter]}".camelize.constantize
  @adapter = adapter_klass.new(options[:adapter_option])
end

Instance Attribute Details

#adapterObject (readonly)

Returns the value of attribute adapter.



3
4
5
# File 'lib/seofy/configuration.rb', line 3

def adapter
  @adapter
end

#sourceObject (readonly)

Returns the value of attribute source.



3
4
5
# File 'lib/seofy/configuration.rb', line 3

def source
  @source
end