Class: Commontator::CommontableConfig

Inherits:
Object
  • Object
show all
Defined in:
lib/commontator/commontable_config.rb

Instance Method Summary collapse

Constructor Details

#initialize(options = {}) ⇒ CommontableConfig

Returns a new instance of CommontableConfig.



7
8
9
10
11
# File 'lib/commontator/commontable_config.rb', line 7

def initialize(options = {})
  Commontator::COMMONTABLE_ATTRIBUTES.each do |attribute|
    self.send attribute.to_s + '=', options[attribute] || Commontator.send(attribute)
  end
end