Class: Kogno::BaseConfig
- Inherits:
-
Object
- Object
- Kogno::BaseConfig
- Defined in:
- lib/core/lib/base_config.rb
Instance Method Summary collapse
-
#initialize(*attr_accessors) ⇒ BaseConfig
constructor
A new instance of BaseConfig.
- #to_h ⇒ Object
Constructor Details
#initialize(*attr_accessors) ⇒ BaseConfig
Returns a new instance of BaseConfig.
5 6 7 8 9 |
# File 'lib/core/lib/base_config.rb', line 5 def initialize(*attr_accessors) attr_accessors.each do |attr_accessor_name| self.class.send(:attr_accessor, attr_accessor_name) end end |
Instance Method Details
#to_h ⇒ Object
11 12 13 |
# File 'lib/core/lib/base_config.rb', line 11 def to_h self.as_json end |