Class: Seofy::Configuration
- Inherits:
-
Object
- Object
- Seofy::Configuration
- Defined in:
- lib/seofy/configuration.rb
Instance Attribute Summary collapse
-
#adapter ⇒ Object
readonly
Returns the value of attribute adapter.
-
#source ⇒ Object
readonly
Returns the value of attribute source.
Instance Method Summary collapse
-
#initialize(options) ⇒ Configuration
constructor
A new instance of Configuration.
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() @source = [:source] adapter_klass = "seofy/adapters/#{[:adapter]}".camelize.constantize @adapter = adapter_klass.new([:adapter_option]) end |
Instance Attribute Details
#adapter ⇒ Object (readonly)
Returns the value of attribute adapter.
3 4 5 |
# File 'lib/seofy/configuration.rb', line 3 def adapter @adapter end |
#source ⇒ Object (readonly)
Returns the value of attribute source.
3 4 5 |
# File 'lib/seofy/configuration.rb', line 3 def source @source end |